]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: mark the bio with an error if we have a failure in dio
authorJosef Bacik <josef@redhat.com>
Tue, 22 Mar 2011 15:05:07 +0000 (11:05 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 25 Mar 2011 23:08:19 +0000 (19:08 -0400)
commitbf50e0ba83a5e212a3404a25a13e65f3cddb5e3c
tree232a22b93eb56090c5a0ecdba377ffb761d5549c
parente534bd08bdfa784c5f64a3839d88fe08674d2829
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>
fs/btrfs/inode.c