diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-03-29 10:55:16 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:26 +0200 |
commit | 1bcd7aa17fc1fa29009feec3e0ac4230d0d9f700 (patch) | |
tree | 0c0ffcaf4449e85de8714d177d7615dfc4e91045 /fs/btrfs/raid56.c | |
parent | 171938e528079deced3226a17dcab12121312a64 (diff) | |
download | linux-stable-1bcd7aa17fc1fa29009feec3e0ac4230d0d9f700.tar.gz linux-stable-1bcd7aa17fc1fa29009feec3e0ac4230d0d9f700.tar.bz2 linux-stable-1bcd7aa17fc1fa29009feec3e0ac4230d0d9f700.zip |
Btrfs: set scrub page's io_error if failing to submit io
Scrub repairs data by the unit called scrub_block, which may contain
several pages. Scrub always tries to look up a good copy of a whole
block, but if there's no such copy, it tries to do repair page by page.
If we don't set page's io_error when checking this bad copy, in the last
step, we may skip this page when repairing bad copy from good copy.
Cc: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.c')
0 files changed, 0 insertions, 0 deletions