Home
last modified time | relevance | path

Searched refs:BIO_MAX_PAGES (Results 1 – 25 of 45) sorted by relevance

12

/kernel/linux/linux-5.10/fs/crypto/
Dbio.c55 bio = bio_alloc(GFP_NOFS, BIO_MAX_PAGES); in fscrypt_zeroout_range_inline_crypt()
77 if (num_pages == BIO_MAX_PAGES || !len || in fscrypt_zeroout_range_inline_crypt()
129 BUILD_BUG_ON(ARRAY_SIZE(pages) > BIO_MAX_PAGES); in fscrypt_zeroout_range()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_bio_io.c9 return min_t(unsigned, howmany(count, PAGE_SIZE), BIO_MAX_PAGES); in bio_max_vecs()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c188 min_t(unsigned int, req->metadata_sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_alloc_bip()
265 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw()
292 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw()
Dpassthru.c55 max_hw_sectors = min_not_zero(BIO_MAX_PAGES << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
195 if (req->sg_cnt > BIO_MAX_PAGES) in nvmet_passthru_map_sg()
/kernel/linux/linux-5.10/fs/erofs/
Ddata.c218 if (nblocks > BIO_MAX_PAGES) in erofs_read_raw_page()
219 nblocks = BIO_MAX_PAGES; in erofs_read_raw_page()
/kernel/linux/linux-5.10/block/
Dblk-map.c154 if (nr_pages > BIO_MAX_PAGES) in bio_copy_user_iov()
155 nr_pages = BIO_MAX_PAGES; in bio_copy_user_iov()
254 bio = bio_kmalloc(gfp_mask, iov_iter_npages(iter, BIO_MAX_PAGES)); in bio_map_user_iov()
Dbounce.c300 if (i++ < BIO_MAX_PAGES) in __blk_queue_bounce()
Dblk-lib.c299 return min(pages, (sector_t)BIO_MAX_PAGES); in __blkdev_sectors_to_bio_pages()
Dblk-crypto-fallback.c219 if (++i == BIO_MAX_PAGES) in blk_crypto_split_bio_if_needed()
Dbio.c40 BV(1, 1), BV(4, 4), BV(16, 16), BV(64, 64), BV(128, 128), BV(BIO_MAX_PAGES, max),
195 case 129 ... BIO_MAX_PAGES: in bvec_alloc()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_iblock.c317 if (sg_num > BIO_MAX_PAGES) in iblock_get_bio()
318 sg_num = BIO_MAX_PAGES; in iblock_get_bio()
641 min_t(unsigned int, cmd->t_prot_nents, BIO_MAX_PAGES)); in iblock_alloc_bip()
/kernel/linux/linux-5.10/fs/squashfs/
Dblock.c90 if (page_count <= BIO_MAX_PAGES) in squashfs_bio_read()
/kernel/linux/linux-5.10/fs/
Dmpage.c308 BIO_MAX_PAGES), in do_mpage_readpage()
621 BIO_MAX_PAGES, GFP_NOFS|__GFP_HIGH); in __mpage_writepage()
Dblock_dev.c444 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES); in __blkdev_direct_IO()
509 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES + 1); in blkdev_direct_IO()
512 if (is_sync_kiocb(iocb) && nr_pages <= BIO_MAX_PAGES) in blkdev_direct_IO()
515 return __blkdev_direct_IO(iocb, iter, min(nr_pages, BIO_MAX_PAGES)); in blkdev_direct_IO()
/kernel/linux/linux-5.10/fs/iomap/
Ddirect-io.c253 nr_pages = iov_iter_npages(dio->submit.iter, BIO_MAX_PAGES); in iomap_dio_bio_actor()
311 nr_pages = iov_iter_npages(dio->submit.iter, BIO_MAX_PAGES); in iomap_dio_bio_actor()
Dbuffered-io.c288 ctx->bio = bio_alloc(gfp, min(BIO_MAX_PAGES, nr_vecs)); in iomap_readpage_actor()
1225 bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_PAGES, &iomap_ioend_bioset); in iomap_alloc_ioend()
1256 new = bio_alloc(GFP_NOFS, BIO_MAX_PAGES); in iomap_chain_bio()
/kernel/linux/linux-5.10/drivers/md/
Ddm-log-writes.c275 bio_pages = min(num_pages, BIO_MAX_PAGES); in write_inline_data()
367 bio = bio_alloc(GFP_KERNEL, min(block->vec_cnt, BIO_MAX_PAGES)); in log_one_block()
389 bio = bio_alloc(GFP_KERNEL, min(block->vec_cnt - i, BIO_MAX_PAGES)); in log_one_block()
Ddm-io.c344 num_bvecs = min_t(int, BIO_MAX_PAGES, in do_region()
Ddm-crypt.c231 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_PAGES * 16)
3236 ret = mempool_init(&cc->page_pool, BIO_MAX_PAGES, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr()
3363 if (unlikely(bio->bi_iter.bi_size > (BIO_MAX_PAGES << PAGE_SHIFT)) && in crypt_map()
3365 dm_accept_partial_bio(bio, ((BIO_MAX_PAGES << PAGE_SHIFT) >> SECTOR_SHIFT)); in crypt_map()
/kernel/linux/linux-5.10/fs/ext4/
Dreadpage.c375 min_t(int, nr_pages, BIO_MAX_PAGES)); in ext4_mpage_readpages()
Dpage-io.c404 bio = bio_alloc(GFP_NOIO, BIO_MAX_PAGES); in io_submit_init_bio()
/kernel/linux/linux-5.10/fs/f2fs/
Dsegment.h885 return 8 * BIO_MAX_PAGES; in nr_pages_to_skip()
902 desired = BIO_MAX_PAGES; in nr_pages_to_write()
/kernel/linux/linux-5.10/fs/nilfs2/
Dsegbuf.c406 wi->max_pages = BIO_MAX_PAGES; in nilfs_segbuf_prepare_write()
/kernel/linux/linux-5.10/include/linux/
Dbio.h22 #define BIO_MAX_PAGES 256 macro
/kernel/linux/linux-5.10/drivers/hyperhold/
Dhp_core.c710 bio = bio_alloc(GFP_NOIO, BIO_MAX_PAGES); in hpio_submit()

12