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 010b9fb9fec6..985da945f0b5 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
| @@ -272,7 +272,7 @@ static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno) | |||
| 272 | nrvecs = max(nrvecs/2, 1U); | 272 | nrvecs = max(nrvecs/2, 1U); |
| 273 | } | 273 | } |
| 274 | 274 | ||
| 275 | bio->bi_sector = blkno * (sb->s_blocksize >> 9); | 275 | bio->bi_iter.bi_sector = blkno * (sb->s_blocksize >> 9); |
| 276 | bio->bi_bdev = sb->s_bdev; | 276 | bio->bi_bdev = sb->s_bdev; |
| 277 | bio->bi_end_io = gfs2_end_log_write; | 277 | bio->bi_end_io = gfs2_end_log_write; |
| 278 | bio->bi_private = sdp; | 278 | bio->bi_private = sdp; |
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 82303b474958..16194da91652 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
| @@ -224,7 +224,7 @@ static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) | |||
| 224 | lock_page(page); | 224 | lock_page(page); |
| 225 | 225 | ||
| 226 | bio = bio_alloc(GFP_NOFS, 1); | 226 | bio = bio_alloc(GFP_NOFS, 1); |
| 227 | bio->bi_sector = sector * (sb->s_blocksize >> 9); | 227 | bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9); |
| 228 | bio->bi_bdev = sb->s_bdev; | 228 | bio->bi_bdev = sb->s_bdev; |
| 229 | bio_add_page(bio, page, PAGE_SIZE, 0); | 229 | bio_add_page(bio, page, PAGE_SIZE, 0); |
| 230 | 230 | ||
