Btrfs-progs: fsck: fix wrong return value in check_block()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Mon, 24 Feb 2014 11:55:14 +0000 (19:55 +0800)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:25 +0000 (06:23 -0700)
commit6262e12206cbfc58fdfb31af19fcece4b00d0f1b
tree376ec28257eba659aa1e41b075d5417de5108046
parentacdf338c136a602b9006f37efe2c6a60784834c7
Btrfs-progs: fsck: fix wrong return value in check_block()

We found btrfsck will output backrefs mismatch while the filesystem
is defenitely ok.

The problem is that check_block() don't return right value,which
makes btrfsck won't walk all tree blocks thus we don't get a consistent
filesystem, we will fail to check extent refs etc.

Reported-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
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