| /Linux-v5.4/fs/xfs/ |
| D | xfs_bio_io.c | 9 return min_t(unsigned, howmany(count, PAGE_SIZE), BIO_MAX_PAGES); in bio_max_vecs()
|
| D | xfs_aops.c | 706 bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_PAGES, &xfs_ioend_bioset); in xfs_alloc_ioend() 738 new = bio_alloc(GFP_NOFS, BIO_MAX_PAGES); in xfs_chain_bio()
|
| /Linux-v5.4/fs/erofs/ |
| D | data.c | 218 if (nblocks > BIO_MAX_PAGES) in erofs_read_raw_page() 219 nblocks = BIO_MAX_PAGES; in erofs_read_raw_page()
|
| /Linux-v5.4/drivers/nvme/target/ |
| D | io-cmd-bdev.c | 177 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw() 190 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw()
|
| /Linux-v5.4/drivers/target/ |
| D | target_core_iblock.c | 317 if (sg_num > BIO_MAX_PAGES) in iblock_get_bio() 318 sg_num = BIO_MAX_PAGES; in iblock_get_bio() 642 min_t(unsigned int, cmd->t_prot_nents, BIO_MAX_PAGES)); in iblock_alloc_bip()
|
| D | target_core_pscsi.c | 884 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); in pscsi_map_sg()
|
| /Linux-v5.4/block/ |
| D | bio.c | 38 BV(1, 1), BV(4, 4), BV(16, 16), BV(64, 64), BV(128, 128), BV(BIO_MAX_PAGES, max), 193 case 129 ... BIO_MAX_PAGES: in bvec_alloc() 1244 if (nr_pages > BIO_MAX_PAGES) in bio_copy_user_iov() 1245 nr_pages = BIO_MAX_PAGES; in bio_copy_user_iov() 1347 bio = bio_kmalloc(gfp_mask, iov_iter_npages(iter, BIO_MAX_PAGES)); in bio_map_user_iov()
|
| D | blk-lib.c | 265 return min(pages, (sector_t)BIO_MAX_PAGES); in __blkdev_sectors_to_bio_pages()
|
| D | bounce.c | 299 if (i++ < BIO_MAX_PAGES) in __blk_queue_bounce()
|
| /Linux-v5.4/fs/iomap/ |
| D | direct-io.c | 245 nr_pages = iov_iter_npages(&iter, BIO_MAX_PAGES); in iomap_dio_bio_actor() 303 nr_pages = iov_iter_npages(&iter, BIO_MAX_PAGES); in iomap_dio_bio_actor()
|
| D | buffered-io.c | 268 ctx->bio = bio_alloc(gfp, min(BIO_MAX_PAGES, nr_vecs)); in iomap_readpage_actor()
|
| /Linux-v5.4/fs/ |
| D | mpage.c | 308 BIO_MAX_PAGES), in do_mpage_readpage() 637 BIO_MAX_PAGES, GFP_NOFS|__GFP_HIGH); in __mpage_writepage()
|
| D | block_dev.c | 405 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES); in __blkdev_direct_IO() 470 nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES + 1); in blkdev_direct_IO() 473 if (is_sync_kiocb(iocb) && nr_pages <= BIO_MAX_PAGES) in blkdev_direct_IO() 476 return __blkdev_direct_IO(iocb, iter, min(nr_pages, BIO_MAX_PAGES)); in blkdev_direct_IO()
|
| D | direct-io.c | 734 nr_pages = min(sdio->pages_in_io, BIO_MAX_PAGES); in dio_new_bio()
|
| /Linux-v5.4/drivers/md/ |
| D | dm-log-writes.c | 275 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()
|
| D | dm-io.c | 344 num_bvecs = min_t(int, BIO_MAX_PAGES, in do_region()
|
| D | dm-crypt.c | 219 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_PAGES * 16) 2648 ret = mempool_init(&cc->page_pool, BIO_MAX_PAGES, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr() 2767 if (unlikely(bio->bi_iter.bi_size > (BIO_MAX_PAGES << PAGE_SHIFT)) && in crypt_map() 2769 dm_accept_partial_bio(bio, ((BIO_MAX_PAGES << PAGE_SHIFT) >> SECTOR_SHIFT)); in crypt_map()
|
| /Linux-v5.4/fs/ext4/ |
| D | readpage.c | 364 min_t(int, nr_pages, BIO_MAX_PAGES)); in ext4_mpage_readpages()
|
| D | page-io.c | 366 bio = bio_alloc(GFP_NOIO, BIO_MAX_PAGES); in io_submit_init_bio()
|
| /Linux-v5.4/fs/f2fs/ |
| D | segment.h | 826 return 8 * BIO_MAX_PAGES; in nr_pages_to_skip() 843 desired = BIO_MAX_PAGES; in nr_pages_to_write()
|
| D | data.c | 566 bio = __bio_alloc(fio, BIO_MAX_PAGES); in f2fs_merge_page_bio() 644 io->bio = __bio_alloc(fio, BIO_MAX_PAGES); in f2fs_submit_page_write() 685 bio = f2fs_bio_alloc(sbi, min_t(int, nr_pages, BIO_MAX_PAGES), false); in f2fs_grab_read_bio()
|
| /Linux-v5.4/fs/gfs2/ |
| D | lops.c | 265 struct bio *bio = bio_alloc(GFP_NOIO, BIO_MAX_PAGES); in gfs2_log_alloc_bio() 493 unsigned int readhead_blocks = BIO_MAX_PAGES << shift; in gfs2_find_jhead()
|
| /Linux-v5.4/fs/nilfs2/ |
| D | segbuf.c | 406 wi->max_pages = BIO_MAX_PAGES; in nilfs_segbuf_prepare_write()
|
| /Linux-v5.4/include/linux/ |
| D | bio.h | 24 #define BIO_MAX_PAGES 256 macro
|
| /Linux-v5.4/fs/nfs/blocklayout/ |
| D | blocklayout.c | 124 npg = min(npg, BIO_MAX_PAGES); in bl_alloc_init_bio()
|