diff options
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r-- | fs/xfs/xfs_buf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 51757113a822..9c061ef2b0d9 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -1240,7 +1240,7 @@ next_chunk: | |||
1240 | 1240 | ||
1241 | bio = bio_alloc(GFP_NOIO, nr_pages); | 1241 | bio = bio_alloc(GFP_NOIO, nr_pages); |
1242 | bio->bi_bdev = bp->b_target->bt_bdev; | 1242 | bio->bi_bdev = bp->b_target->bt_bdev; |
1243 | bio->bi_sector = sector; | 1243 | bio->bi_iter.bi_sector = sector; |
1244 | bio->bi_end_io = xfs_buf_bio_end_io; | 1244 | bio->bi_end_io = xfs_buf_bio_end_io; |
1245 | bio->bi_private = bp; | 1245 | bio->bi_private = bp; |
1246 | 1246 | ||
@@ -1262,7 +1262,7 @@ next_chunk: | |||
1262 | total_nr_pages--; | 1262 | total_nr_pages--; |
1263 | } | 1263 | } |
1264 | 1264 | ||
1265 | if (likely(bio->bi_size)) { | 1265 | if (likely(bio->bi_iter.bi_size)) { |
1266 | if (xfs_buf_is_vmapped(bp)) { | 1266 | if (xfs_buf_is_vmapped(bp)) { |
1267 | flush_kernel_vmap_range(bp->b_addr, | 1267 | flush_kernel_vmap_range(bp->b_addr, |
1268 | xfs_buf_vmap_len(bp)); | 1268 | xfs_buf_vmap_len(bp)); |