diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-07-14 00:00:50 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-07-14 20:42:37 +0200 |
commit | c3cfb656307583ddfea45375c10183737593c195 (patch) | |
tree | 715fc49cc0671fe86c20a33ce636c623113fd14e /fs/btrfs/dedupe.h | |
parent | btrfs: btrfs_create_repair_bio never fails, skip error handling (diff) | |
download | linux-c3cfb656307583ddfea45375c10183737593c195.tar.xz linux-c3cfb656307583ddfea45375c10183737593c195.zip |
Btrfs: fix unexpected return value of bio_readpage_error
With blk_status_t conversion (that are now present in master),
bio_readpage_error() may return 1 as now ->submit_bio_hook() may not set
%ret if it runs without problems.
This fixes that unexpected return value by changing
btrfs_check_repairable() to return a bool instead of updating %ret, and
patch is applicable to both codebases with and without blk_status_t.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dedupe.h')
0 files changed, 0 insertions, 0 deletions