diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/lops.c | 2 | ||||
-rw-r--r-- | fs/gfs2/ops_fstype.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index 58f06400b7b8..76693793cedd 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
@@ -273,7 +273,7 @@ static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno) | |||
273 | nrvecs = max(nrvecs/2, 1U); | 273 | nrvecs = max(nrvecs/2, 1U); |
274 | } | 274 | } |
275 | 275 | ||
276 | bio->bi_sector = blkno * (sb->s_blocksize >> 9); | 276 | bio->bi_iter.bi_sector = blkno * (sb->s_blocksize >> 9); |
277 | bio->bi_bdev = sb->s_bdev; | 277 | bio->bi_bdev = sb->s_bdev; |
278 | bio->bi_end_io = gfs2_end_log_write; | 278 | bio->bi_end_io = gfs2_end_log_write; |
279 | bio->bi_private = sdp; | 279 | bio->bi_private = sdp; |
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 1e712b566d76..c6872d09561a 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -238,7 +238,7 @@ static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) | |||
238 | lock_page(page); | 238 | lock_page(page); |
239 | 239 | ||
240 | bio = bio_alloc(GFP_NOFS, 1); | 240 | bio = bio_alloc(GFP_NOFS, 1); |
241 | bio->bi_sector = sector * (sb->s_blocksize >> 9); | 241 | bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9); |
242 | bio->bi_bdev = sb->s_bdev; | 242 | bio->bi_bdev = sb->s_bdev; |
243 | bio_add_page(bio, page, PAGE_SIZE, 0); | 243 | bio_add_page(bio, page, PAGE_SIZE, 0); |
244 | 244 | ||