]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: fix call to btrfs_search_slot in free space cache
authorJosef Bacik <josef@redhat.com>
Fri, 19 Aug 2011 16:06:12 +0000 (12:06 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:17 +0000 (21:20 -0500)
commitb0cf99d537dcdcd3ff9aadd6e36a443e7563a61e
tree1c3b63f82aa1597366733d9a30fd0370e37b1ce4
parenta34880c0c1906f6045d52fa5936dc256a41c88b6
Btrfs: fix call to btrfs_search_slot in free space cache

We are setting ins_len to 1 even tho we are just modifying an item that should
be there already.  This may cause the search stuff to split nodes on the way
down needelessly.  Set this to 0 since we aren't inserting anything.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit a9b5fcddce594a408a48d523087b5bb64ce82469)
fs/btrfs/free-space-cache.c