commit | 6c7d54ac87f338c479d9729e8392eca3f76e11e1 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.yan@oracle.com> | Fri Jan 15 08:43:09 2010 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Sun Jan 17 20:40:21 2010 -0500 |
tree | 3815913df585d7cbc8ba6a4c151328daa4720c7c | |
parent | 2423fdfb96e3f9ff3baeb6c4c78d74145547891d [diff] |
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 <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>