aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compat.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-02-04 09:30:58 -0500
committerChris Mason <chris.mason@oracle.com>2009-02-04 09:30:58 -0500
commit06d9a8d7c24fe22836bf0b0f82db59d6f98e271e (patch)
treeb6cc453c21c2cb38f8a4b10401bec8652c75a83f /fs/btrfs/compat.h
parentf03d9301f15fb69cdf1eb59d53c9fb72f68ecccc (diff)
downloadkernel_samsung_smdk4412-06d9a8d7c24fe22836bf0b0f82db59d6f98e271e.zip
kernel_samsung_smdk4412-06d9a8d7c24fe22836bf0b0f82db59d6f98e271e.tar.gz
kernel_samsung_smdk4412-06d9a8d7c24fe22836bf0b0f82db59d6f98e271e.tar.bz2
Btrfs: Change btrfs_truncate_inode_items to stop when it hits the inode
btrfs_truncate_inode_items is setup to stop doing btree searches when it has finished removing the items for the inode. It used to detect the end of the inode by looking for an objectid that didn't match the one we were searching for. But, this would result in an extra search through the btree, which adds extra balancing and cow costs to the operation. This commit adds a check to see if we found the inode item, which means we can stop searching early. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/compat.h')
0 files changed, 0 insertions, 0 deletions