summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-08-19 16:29:59 +0200
committerJosef Bacik <josef@redhat.com>2011-10-19 21:12:37 +0200
commit07127184efb629f1336c0592bfdacec258cab731 (patch)
treec527bfd0444cd9a589278873dd78ef185f66d2fc /fs/btrfs/free-space-cache.c
parentBtrfs: only reserve space in fallocate if we have to do a preallocate (diff)
downloadlinux-07127184efb629f1336c0592bfdacec258cab731.tar.xz
linux-07127184efb629f1336c0592bfdacec258cab731.zip
Btrfs: reduce the amount of space needed for truncates
With btrfs_truncate_inode_items we always return if we have to go to another leaf, which makes us do our reservation again. This means we will only ever modify one leaf at a time, so we only need 1 items worth of slack space. Also, since we are deleting we will not be creating nodes as we go down, if anything we'll be free'ing them as we merge them together, so make a different calculation for truncate which will only have the worst case useage of COW'ing the entire path down to the leaf. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
0 files changed, 0 insertions, 0 deletions