Btrfs-progs: fix wrong leaf when checking the trees relationship
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 10 Aug 2012 05:12:16 +0000 (13:12 +0800)
committerroot <root@localhost.localdomain>
Thu, 4 Oct 2012 20:26:31 +0000 (16:26 -0400)
commit78bffa238788705967050b15c9e6a7e05c90bde5
treebf9d3f90b5b7d62b628ab6cef20b94490bf8f6fd
parent3b4e2d61961f7308885cce98bfecdf07d6c0ed01
Btrfs-progs: fix wrong leaf when checking the trees relationship

The variant named 'leaf' in is_child_root() still hold old result after
we get the next leaf, it make btrfsck returns the wrong result, such as
"unresolved ref root ..", fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
btrfsck.c