|
@@ -657,6 +657,7 @@ static void submit_write_page(struct f2fs_sb_info *sbi, struct page *page,
|
|
|
block_t blk_addr, enum page_type type)
|
|
|
{
|
|
|
struct block_device *bdev = sbi->sb->s_bdev;
|
|
|
+ int bio_blocks;
|
|
|
|
|
|
verify_block_addr(sbi, blk_addr);
|
|
|
|
|
@@ -676,7 +677,8 @@ retry:
|
|
|
goto retry;
|
|
|
}
|
|
|
|
|
|
- sbi->bio[type] = f2fs_bio_alloc(bdev, max_hw_blocks(sbi));
|
|
|
+ bio_blocks = MAX_BIO_BLOCKS(max_hw_blocks(sbi));
|
|
|
+ sbi->bio[type] = f2fs_bio_alloc(bdev, bio_blocks);
|
|
|
sbi->bio[type]->bi_sector = SECTOR_FROM_BLOCK(sbi, blk_addr);
|
|
|
sbi->bio[type]->bi_private = priv;
|
|
|
/*
|