Btrfs: Fix oopsen when dropping empty tree.
authorYan, Zheng <zheng.yan@oracle.com>
Mon, 1 Feb 2010 02:41:17 +0000 (02:41 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 4 Feb 2010 16:31:45 +0000 (11:31 -0500)
commit7a7965f83e89f0be506a96769938a721e4e5ae50
treebe4ffe67af162c6c7cfd0780c507fd5f2d522635
parentd7ce5843bb28ada6845ab2ae8510ba3f12d33154
Btrfs: Fix oopsen when dropping empty tree.

When dropping a empty tree, walk_down_tree() skips checking
extent information for the tree root. This will triggers a
BUG_ON in walk_up_proc().

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