aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_aops.c2
-rw-r--r--fs/xfs/xfs_buf.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index 71c8c9d2b882..1b19b9cd692a 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -407,7 +407,7 @@ xfs_alloc_ioend_bio(
407 struct bio *bio = bio_alloc(GFP_NOIO, nvecs); 407 struct bio *bio = bio_alloc(GFP_NOIO, nvecs);
408 408
409 ASSERT(bio->bi_private == NULL); 409 ASSERT(bio->bi_private == NULL);
410 bio->bi_sector = bh->b_blocknr * (bh->b_size >> 9); 410 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
411 bio->bi_bdev = bh->b_bdev; 411 bio->bi_bdev = bh->b_bdev;
412 return bio; 412 return bio;
413} 413}
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index c7f0b77dcb00..5f3ea443ebbe 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -1255,7 +1255,7 @@ next_chunk:
1255 1255
1256 bio = bio_alloc(GFP_NOIO, nr_pages); 1256 bio = bio_alloc(GFP_NOIO, nr_pages);
1257 bio->bi_bdev = bp->b_target->bt_bdev; 1257 bio->bi_bdev = bp->b_target->bt_bdev;
1258 bio->bi_sector = sector; 1258 bio->bi_iter.bi_sector = sector;
1259 bio->bi_end_io = xfs_buf_bio_end_io; 1259 bio->bi_end_io = xfs_buf_bio_end_io;
1260 bio->bi_private = bp; 1260 bio->bi_private = bp;
1261 1261
@@ -1277,7 +1277,7 @@ next_chunk:
1277 total_nr_pages--; 1277 total_nr_pages--;
1278 } 1278 }
1279 1279
1280 if (likely(bio->bi_size)) { 1280 if (likely(bio->bi_iter.bi_size)) {
1281 if (xfs_buf_is_vmapped(bp)) { 1281 if (xfs_buf_is_vmapped(bp)) {
1282 flush_kernel_vmap_range(bp->b_addr, 1282 flush_kernel_vmap_range(bp->b_addr,
1283 xfs_buf_vmap_len(bp)); 1283 xfs_buf_vmap_len(bp));