Btrfs: Properly handle overlapping extent in shrink_extent_tree
authorYan <yanzheng@21cn.com>
Thu, 3 Jan 2008 19:14:39 +0000 (14:14 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:58 +0000 (11:03 -0400)
commit73e48b277a3fcd647f1936c71aea2f8d450ecc74
treea64bd6675dde709cf288d9236a4add1f18781799
parentd548ee5182bda42c87bdd4e28b539d5e436e206a
Btrfs: Properly handle overlapping extent in shrink_extent_tree

The patch fixes the overlapping extent issue in shrink_extent_tree.
It checks whether there is an overlapping extent by using
find_previous_extent. If there is an overlapping extent, it setups
key.objectid and cur_byte properly.

---

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