Properly call btrfs_search_slot while shrinking
authorChris Mason <chris.mason@oracle.com>
Fri, 4 Jan 2008 14:34:54 +0000 (09:34 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:59 +0000 (11:03 -0400)
commit1372f8e609d260c2352bf74e125614eef7aee8ef
treeb20a655957cb27a51779a9db971aeb8b9d9d2d19
parent2552488345ea0933711010ee2c844792130a4252
Properly call btrfs_search_slot while shrinking

The shrinking code used btrfs_next_leaf to find the next item, but
this does not cow the blocks it touches.  This fix calls search_slot after
finding the next item to do appropriate cow and balancing.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c