btrfs-progs: Cleanup check_tree_block() function
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 29 Jan 2015 08:32:39 +0000 (16:32 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 11 Feb 2015 15:50:48 +0000 (16:50 +0100)
commit56e69234e471bb5982a4928da8e605d9d803b43a
tree2fb492694be72fda38c5bb636a8ed7aa711c9e36
parent478a4f21e480096b6c2f54ee5dd6421a557f26ab
btrfs-progs: Cleanup check_tree_block() function

Before this patch, check_tree_block() will print error on bytenr
mismatch but don't output error on fsid mismatch.

This patch will modify check_tree_block(), so it will only return errno
but not print error messages.
The error message will be output by print_tree_block_err() function.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[renamed and cleaned return codes]
Signed-off-by: David Sterba <dsterba@suse.cz>
disk-io.c