Skip to content
Commit ef7cdac1 authored by Liu Bo's avatar Liu Bo Committed by David Sterba
Browse files

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: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ use bool for uptodate ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent e3d37fab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment