aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c2
-rw-r--r--fs/f2fs/segment.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index a4949096cf4c..a2c8de8ba6ce 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -386,7 +386,7 @@ int f2fs_readpage(struct f2fs_sb_info *sbi, struct page *page,
386 bio = f2fs_bio_alloc(bdev, 1); 386 bio = f2fs_bio_alloc(bdev, 1);
387 387
388 /* Initialize the bio */ 388 /* Initialize the bio */
389 bio->bi_sector = SECTOR_FROM_BLOCK(sbi, blk_addr); 389 bio->bi_iter.bi_sector = SECTOR_FROM_BLOCK(sbi, blk_addr);
390 bio->bi_end_io = read_end_io; 390 bio->bi_end_io = read_end_io;
391 391
392 if (bio_add_page(bio, page, PAGE_CACHE_SIZE, 0) < PAGE_CACHE_SIZE) { 392 if (bio_add_page(bio, page, PAGE_CACHE_SIZE, 0) < PAGE_CACHE_SIZE) {
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index a90c6bc0d129..36e8afd8e1e4 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -682,7 +682,7 @@ retry:
682 682
683 bio_blocks = MAX_BIO_BLOCKS(max_hw_blocks(sbi)); 683 bio_blocks = MAX_BIO_BLOCKS(max_hw_blocks(sbi));
684 sbi->bio[type] = f2fs_bio_alloc(bdev, bio_blocks); 684 sbi->bio[type] = f2fs_bio_alloc(bdev, bio_blocks);
685 sbi->bio[type]->bi_sector = SECTOR_FROM_BLOCK(sbi, blk_addr); 685 sbi->bio[type]->bi_iter.bi_sector = SECTOR_FROM_BLOCK(sbi, blk_addr);
686 sbi->bio[type]->bi_private = priv; 686 sbi->bio[type]->bi_private = priv;
687 /* 687 /*
688 * The end_io will be assigned at the sumbission phase. 688 * The end_io will be assigned at the sumbission phase.