diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-12 15:27:25 +1100 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-12 15:27:25 +1100 |
commit | cfbe52672fbc6f333892e8dde82c35e0a76aa5f5 (patch) | |
tree | fa2b867d97f55a138f0bf59cadb804f40057465a /fs | |
parent | 14d676f56fad26fd3c31eeff5d4ef8ea4a163571 (diff) | |
download | kernel_samsung_aries-cfbe52672fbc6f333892e8dde82c35e0a76aa5f5.zip kernel_samsung_aries-cfbe52672fbc6f333892e8dde82c35e0a76aa5f5.tar.gz kernel_samsung_aries-cfbe52672fbc6f333892e8dde82c35e0a76aa5f5.tar.bz2 |
[XFS] set b_error from bio error in xfs_buf_bio_end_io
Preserve any error returned by the bio layer.
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index cd89c56..aae8d07 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c @@ -1126,8 +1126,7 @@ xfs_buf_bio_end_io( unsigned int blocksize = bp->b_target->bt_bsize; struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1; - if (!test_bit(BIO_UPTODATE, &bio->bi_flags)) - bp->b_error = EIO; + xfs_buf_ioerror(bp, -error); do { struct page *page = bvec->bv_page; |