From: Yan, Zheng Date: Fri, 15 Jan 2010 08:43:09 +0000 (+0000) Subject: Btrfs: Fix race in btrfs_mark_extent_written X-Git-Tag: v2.6.33-rc5~11^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7d54ac87f338c479d9729e8392eca3f76e11e1;p=pandora-kernel.git Btrfs: Fix race in btrfs_mark_extent_written 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed