diff options
| author | Liu Bo <[email protected]> | 2017-07-13 22:00:50 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2017-07-14 18:42:37 +0000 |
| commit | c3cfb656307583ddfea45375c10183737593c195 (patch) | |
| tree | 715fc49cc0671fe86c20a33ce636c623113fd14e /net/switchdev/switchdev.c | |
| parent | btrfs: btrfs_create_repair_bio never fails, skip error handling (diff) | |
| download | kernel-c3cfb656307583ddfea45375c10183737593c195.tar.gz kernel-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 <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
