btrfs-progs: check: enhance return values of walk_down_tree_v2
authorSu Yue <suy.fnst@cn.fujitsu.com>
Tue, 21 Feb 2017 08:34:38 +0000 (16:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:49 +0000 (13:00 +0100)
commiteafdeff3e3842015cc356a1b890dac4265c94772
tree1803b94af782d1ed34190ffeaa1b73572e44d86d
parenta0e44021abd7fa612f3060d6b9fe7a50211aafcf
btrfs-progs: check: enhance return values of walk_down_tree_v2

In lowmem mode, 'walk_down_tree_v2' returns negative values wheather
the error is fatal or not. It causes the loop where 'walk_down_tree_v2'
is to break even the error is tolerated and then subsequent nodes process
will be skipped.

Fix it by redefining meanings of values 'walk_down_tree_v2' returns.
Do a similar fix for 'process_one_leaf_v2'.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c