btrfs-progs: btrfs_setup_chunk_tree_and_device_map: Return -EIO on error.
authorchandan <chandan@linux.vnet.ibm.com>
Thu, 5 Sep 2013 05:51:30 +0000 (11:21 +0530)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:20:42 +0000 (08:20 -0400)
commit7c9074422aedb10d56b3db74041f06fd43951577
tree473602545cc92ec8af08daef822a0d45f99cb7bb
parent1c87a95bfc5014f3c47c7f64f636375774be079b
btrfs-progs: btrfs_setup_chunk_tree_and_device_map: Return -EIO on error.

As a result of a successful call to btrfs_read_sys_array(), the 'ret'
variable is already set to 0. Hence the function would return 0 even
if the call to read_tree_block() fails.

Signed-off-by: chandan <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
disk-io.c