Liu Bo 64c043de46 Btrfs: fix up read_tree_block to return proper error
The return value of read_tree_block() can confuse callers as it always
returns NULL for either -ENOMEM or -EIO, so it's likely that callers
parse it to a wrong error, for instance, in btrfs_read_tree_root().

This fixes the above issue.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
2015-06-03 04:03:08 -07:00
..
2014-06-09 17:20:42 -07:00
2014-10-14 10:51:22 +02:00
2015-06-02 19:34:36 -07:00
2015-06-03 04:03:06 -07:00
2015-06-03 04:03:06 -07:00
2015-06-03 04:03:06 -07:00
2014-01-29 07:06:27 -08:00