|
@@ -173,7 +173,7 @@ static struct bio *__bio_alloc(struct f2fs_sb_info *sbi, block_t blk_addr,
|
|
|
{
|
|
{
|
|
|
struct bio *bio;
|
|
struct bio *bio;
|
|
|
|
|
|
|
|
- bio = f2fs_bio_alloc(npages);
|
|
|
|
|
|
|
+ bio = f2fs_bio_alloc(sbi, npages, true);
|
|
|
|
|
|
|
|
f2fs_target_device(sbi, blk_addr, bio);
|
|
f2fs_target_device(sbi, blk_addr, bio);
|
|
|
bio->bi_end_io = is_read ? f2fs_read_end_io : f2fs_write_end_io;
|
|
bio->bi_end_io = is_read ? f2fs_read_end_io : f2fs_write_end_io;
|
|
@@ -473,7 +473,7 @@ static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr,
|
|
|
f2fs_wait_on_block_writeback(sbi, blkaddr);
|
|
f2fs_wait_on_block_writeback(sbi, blkaddr);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bio = bio_alloc(GFP_KERNEL, min_t(int, nr_pages, BIO_MAX_PAGES));
|
|
|
|
|
|
|
+ bio = f2fs_bio_alloc(sbi, min_t(int, nr_pages, BIO_MAX_PAGES), false);
|
|
|
if (!bio) {
|
|
if (!bio) {
|
|
|
if (ctx)
|
|
if (ctx)
|
|
|
fscrypt_release_ctx(ctx);
|
|
fscrypt_release_ctx(ctx);
|