]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't do repair validation for checksum errors
authorOmar Sandoval <osandov@fb.com>
Thu, 16 Apr 2020 21:46:15 +0000 (14:46 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:25 +0000 (11:25 +0200)
commite9002caf4a610b521f567e44ae7169aa852f0c01
tree5657afbbd6ed2d1e7a3b48edd964e4e742ceb801
parent73580a560506c9873632ebe4725aabd2a445385f
btrfs: don't do repair validation for checksum errors

The purpose of the validation step is to distinguish between good and
bad sectors in a failed multi-sector read. If a multi-sector read
succeeded but some of those sectors had checksum errors, we don't need
to validate anything; we know the sectors with bad checksums need to be
repaired.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c