summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/btrfs.h
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-04-13 18:11:48 -0700
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:26:03 +0200
commitef7cdac101602844a4179f7d2d9e26bd20a0edf9 (patch)
tree7e6341f5838275051463269a12e6397fa7cd6aee /include/uapi/linux/btrfs.h
parente3d37faba2eb19a1d459917bbf54ac1c65711510 (diff)
downloadtalos-op-linux-ef7cdac101602844a4179f7d2d9e26bd20a0edf9.tar.gz
talos-op-linux-ef7cdac101602844a4179f7d2d9e26bd20a0edf9.zip
Btrfs: skip checksum verification if IO error occurs
Currently dio read also goes to verify checksum if -EIO has been returned, although it usually fails on checksum, it's not necessary at all, we could directly check if there is another copy to read. And with this, the behavior of dio read is now consistent with that of buffered read. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> [ use bool for uptodate ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux/btrfs.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud