diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2015-05-25 17:30:15 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-06-03 04:03:08 -0700 |
commit | 64c043de466d5746e7ca306dab9d418cd871cefc (patch) | |
tree | fcce36cbfdc022f24b5b847152d6b17c967a1b64 /Kconfig | |
parent | 8635eda91ee11690bd8f73b2504ee19431fd6380 (diff) | |
download | linux-stable-64c043de466d5746e7ca306dab9d418cd871cefc.tar.gz linux-stable-64c043de466d5746e7ca306dab9d418cd871cefc.tar.bz2 linux-stable-64c043de466d5746e7ca306dab9d418cd871cefc.zip |
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>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions