diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-10-14 13:38:28 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-10-14 14:32:50 (GMT) |
commit | 444528b3e614f7f2391488d9bca8e0b872db909b (patch) | |
tree | 5326be87610ed3fc7a14d0f28e96e5e22207cf5f /fs/btrfs/tree-log.c | |
parent | 0634857488ec6e28fa22920cd0bee3c2ac07ccfd (diff) | |
download | linux-fsl-qoriq-444528b3e614f7f2391488d9bca8e0b872db909b.tar.xz |
Btrfs: always pin metadata in discard mode
We have an optimization in btrfs to allow blocks to be
immediately freed if they were allocated in this transaction and never
written. Otherwise they are pinned and freed when the transaction
commits.
This isn't optimal for discard mode because immediately freeing
them means immediately discarding them. It is better to give the
block to the pinning code and letting the (slow) discard happen later.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions