]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: set scrub page's io_error if failing to submit io
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 29 Mar 2017 17:55:16 +0000 (10:55 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:26 +0000 (14:07 +0200)
commitd61ae0a58fe1368d8461227156bd512a6c5bc7d5
tree0c0ffcaf4449e85de8714d177d7615dfc4e91045
parent2cf0d17887074a57b574d9c499454994cf709147
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>
fs/btrfs/scrub.c