Btrfs-progs: fsck: deal with really corrupted extent tree
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 6 Mar 2014 05:53:56 +0000 (13:53 +0800)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:34 +0000 (06:23 -0700)
commitbedef66c0b8e1ded5aad6366b648f72d09e080d2
treeabbd504f8b34be4e577626fe401342884fe40496
parentafb7de0da23676a37b2f28ced315889541591f69
Btrfs-progs: fsck: deal with really corrupted extent tree

To reinit extent root, we need find a free extent, however,
we may have a really corrupted extent tree, so we can't rely
on existed extent tree to cache block group any more.

During test, we fail to reinit extent tree which is because we
can not find a free extent so let's make block group cache ourselves
firstly.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-check.c