btrfs-progs: fsck: remove unfriendly BUG_ON() for searching tree failure
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 29 May 2014 10:01:43 +0000 (18:01 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 10 Oct 2014 08:38:21 +0000 (10:38 +0200)
commitf495a2ac66116f0a1b15e73380c8cbca6e0a4ca0
tree2f9da6f714f0c4d30a23e5010fa369c4c6c5b42e
parentadfe8b5cfb24971f7fe17bbcabd0d1a54d4599a6
btrfs-progs: fsck: remove unfriendly BUG_ON() for searching tree failure

Now btrfsck would hit assertation failure for some searching tree failure.
It is true that filesystem may get some metadata block corrupted,
and btrfsck could not deal with these corruptings. But, Users really
don't want a BUG_ON() here, Instead, just return errors to caller.

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