diff options
author | Josef Bacik <josef@redhat.com> | 2011-03-22 18:05:07 +0300 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-03-26 02:08:19 +0300 |
commit | c0da7aa1a2d8fcafe271a7077599253c8ed94bb2 (patch) | |
tree | 232a22b93eb56090c5a0ecdba377ffb761d5549c /fs/btrfs/super.c | |
parent | 98bc3149fad639c8f50c7110b961a2a2fe085eed (diff) | |
download | linux-c0da7aa1a2d8fcafe271a7077599253c8ed94bb2.tar.xz |
Btrfs: mark the bio with an error if we have a failure in dio
I noticed that dio_end_io calls the appropriate endio function with an error,
but the endio functions don't actually do anything with that error, they assume
that if there was an error then the bio will not be uptodate. So if we had
checksum failures we would never pass back EIO. So if there is an error in our
endio functions make sure to clear the uptodate flag on the bio. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions