Btrfs: Fix race in btrfs_mark_extent_written
authorYan, Zheng <zheng.yan@oracle.com>
Fri, 15 Jan 2010 08:43:09 +0000 (08:43 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 18 Jan 2010 01:40:21 +0000 (20:40 -0500)
Fix bug reported by Johannes Hirte. The reason of that bug
is btrfs_del_items is called after btrfs_duplicate_item and
btrfs_del_items triggers tree balance. The fix is check that
case and call btrfs_search_slot when needed.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>

No differences found