summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/btrfs_inode.h
diff options
context:
space:
mode:
authorJosef Bacik2011-08-01 18:08:18 +0200
committerJosef Bacik2011-10-19 21:12:30 +0200
commit9e4871070b5f070cacf26525389d56e0345ba156 (patch)
treecc52193e1d2d12923cdfe2749c3f74102bb9751e /fs/btrfs/btrfs_inode.h
parentBtrfs: use bytes_may_use for all ENOSPC reservations (diff)
downloadkernel-qcow2-linux-9e4871070b5f070cacf26525389d56e0345ba156.tar.gz
kernel-qcow2-linux-9e4871070b5f070cacf26525389d56e0345ba156.tar.xz
kernel-qcow2-linux-9e4871070b5f070cacf26525389d56e0345ba156.zip
Btrfs: skip looking for delalloc if we don't have ->fill_delalloc
We always look for delalloc bytes in our io_tree so we can fill in delalloc. This is fine in most cases, but if we're writing out the btree_inode this is just a superfluous tree search on the io_tree, and if we have a lot of metadata dirty this could be an expensive check. So instead check to see if our io_tree has a ->fill_delalloc op, and if not don't even bother doing the lookup. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
0 files changed, 0 insertions, 0 deletions