diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-09-13 12:25:35 +0300 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-09-13 12:25:35 +0300 | 
| commit | d2bb1d42b95fa88f092623bbb8ed533f316b6a3c (patch) | |
| tree | fb796db809a266906fa358f24f1c07ced4df33f0 /fs/buffer.c | |
| parent | 3bd7617596df560e2cb22ad97888cb42dae39d02 (diff) | |
| parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
| download | linux-d2bb1d42b95fa88f092623bbb8ed533f316b6a3c.tar.xz | |
Merge tag 'v4.3-rc1' into perf/core, to refresh the tree
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/buffer.c')
| -rw-r--r-- | fs/buffer.c | 13 | 
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 1cf7a53a0277..82283abb2795 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,  }  EXPORT_SYMBOL(generic_block_bmap); -static void end_bio_bh_io_sync(struct bio *bio, int err) +static void end_bio_bh_io_sync(struct bio *bio)  {  	struct buffer_head *bh = bio->bi_private; -	if (unlikely (test_bit(BIO_QUIET,&bio->bi_flags))) +	if (unlikely(bio_flagged(bio, BIO_QUIET)))  		set_bit(BH_Quiet, &bh->b_state); -	bh->b_end_io(bh, test_bit(BIO_UPTODATE, &bio->bi_flags)); +	bh->b_end_io(bh, !bio->bi_error);  	bio_put(bio);  } @@ -3046,12 +3046,9 @@ static int submit_bh_wbc(int rw, struct buffer_head *bh,  	bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);  	bio->bi_bdev = bh->b_bdev; -	bio->bi_io_vec[0].bv_page = bh->b_page; -	bio->bi_io_vec[0].bv_len = bh->b_size; -	bio->bi_io_vec[0].bv_offset = bh_offset(bh); -	bio->bi_vcnt = 1; -	bio->bi_iter.bi_size = bh->b_size; +	bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh)); +	BUG_ON(bio->bi_iter.bi_size != bh->b_size);  	bio->bi_end_io = end_bio_bh_io_sync;  	bio->bi_private = bh;  | 
