diff options
| author | Liu Bo <[email protected]> | 2015-05-25 09:30:15 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2015-06-03 11:03:08 +0000 |
| commit | 64c043de466d5746e7ca306dab9d418cd871cefc (patch) | |
| tree | fcce36cbfdc022f24b5b847152d6b17c967a1b64 /fs/btrfs/async-thread.h | |
| parent | Btrfs: add missing free_extent_buffer (diff) | |
| download | kernel-64c043de466d5746e7ca306dab9d418cd871cefc.tar.gz kernel-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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.h')
0 files changed, 0 insertions, 0 deletions
