summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 1cf7a53a0277..7a49bb84ecb5 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2957,14 +2957,14 @@ sector_t generic_block_bmap(struct address_space *mapping, sector_t block,
2957} 2957}
2958EXPORT_SYMBOL(generic_block_bmap); 2958EXPORT_SYMBOL(generic_block_bmap);
2959 2959
2960static void end_bio_bh_io_sync(struct bio *bio, int err) 2960static void end_bio_bh_io_sync(struct bio *bio)
2961{ 2961{
2962 struct buffer_head *bh = bio->bi_private; 2962 struct buffer_head *bh = bio->bi_private;
2963 2963
2964 if (unlikely (test_bit(BIO_QUIET,&bio->bi_flags))) 2964 if (unlikely (test_bit(BIO_QUIET,&bio->bi_flags)))
2965 set_bit(BH_Quiet, &bh->b_state); 2965 set_bit(BH_Quiet, &bh->b_state);
2966 2966
2967 bh->b_end_io(bh, test_bit(BIO_UPTODATE, &bio->bi_flags)); 2967 bh->b_end_io(bh, !bio->bi_error);
2968 bio_put(bio); 2968 bio_put(bio);
2969} 2969}
2970 2970