| /linux-6.15/fs/crypto/ |
| H A D | bio.c | 59 bio = bio_alloc(inode->i_sb->s_bdev, BIO_MAX_VECS, REQ_OP_WRITE, in fscrypt_zeroout_range_inline_crypt() 80 if (num_pages == BIO_MAX_VECS || !len || in fscrypt_zeroout_range_inline_crypt() 136 BUILD_BUG_ON(ARRAY_SIZE(pages) > BIO_MAX_VECS); in fscrypt_zeroout_range()
|
| /linux-6.15/block/ |
| H A D | bio.c | 45 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" }, 58 case 129 ... BIO_MAX_VECS: in biovec_slab() 164 BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free() 166 if (nr_vecs == BIO_MAX_VECS) in bvec_free() 201 if (*nr_vecs < BIO_MAX_VECS) { in bvec_alloc() 207 *nr_vecs = BIO_MAX_VECS; in bvec_alloc()
|
| H A D | bio-integrity.c | 283 nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS + 1); in bio_integrity_map_user() 284 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user()
|
| H A D | bounce.c | 212 if (i++ < BIO_MAX_VECS) in __blk_queue_bounce()
|
| H A D | fops.c | 249 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO() 401 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO() 402 if (likely(nr_pages <= BIO_MAX_VECS)) { in blkdev_direct_IO()
|
| H A D | blk-lib.c | 192 return min(pages, (sector_t)BIO_MAX_VECS); in __blkdev_sectors_to_bio_pages()
|
| H A D | blk-crypto-fallback.c | 221 if (++i == BIO_MAX_VECS) in blk_crypto_fallback_split_bio_if_needed()
|
| H A D | blk-map.c | 275 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
|
| H A D | blk-settings.c | 158 unsigned int max_segments = min(BIO_MAX_VECS, lim->max_segments); in blk_queue_max_guaranteed_bio()
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | vio.h | 21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
|
| /linux-6.15/fs/bcachefs/ |
| H A D | fs-io-direct.c | 98 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in bch2_direct_IO_read() 138 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in bch2_direct_IO_read() 641 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in bch2_direct_write()
|
| H A D | fs-io-buffered.c | 303 BIO_MAX_VECS); in bch2_readahead() 420 (bio->bi_iter.bi_size + len > BIO_MAX_VECS * PAGE_SIZE); in bch_io_full() 510 w->io = container_of(bio_alloc_bioset(NULL, BIO_MAX_VECS, in bch2_writepage_io_alloc()
|
| /linux-6.15/drivers/nvme/target/ |
| H A D | passthru.c | 112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl() 267 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
|
| /linux-6.15/include/linux/ |
| H A D | bio.h | 13 #define BIO_MAX_VECS 256U macro 20 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
|
| /linux-6.15/fs/erofs/ |
| H A D | fscache.c | 180 struct bio_vec bvecs[BIO_MAX_VECS]; 200 bio_init(&io->bio, NULL, io->bvecs, BIO_MAX_VECS, REQ_OP_READ); in erofs_fscache_bio_alloc()
|
| /linux-6.15/fs/iomap/ |
| H A D | direct-io.c | 424 nr_pages = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter() 475 BIO_MAX_VECS); in iomap_dio_bio_iter()
|
| /linux-6.15/fs/f2fs/ |
| H A D | segment.h | 947 return 8 * BIO_MAX_VECS; in nr_pages_to_skip() 964 desired = BIO_MAX_VECS; in nr_pages_to_write()
|
| /linux-6.15/fs/ |
| H A D | mpage.c | 593 bio = bio_alloc(bdev, BIO_MAX_VECS, in __mpage_writepage()
|
| /linux-6.15/fs/nilfs2/ |
| H A D | segbuf.c | 370 wi->max_pages = BIO_MAX_VECS; in nilfs_segbuf_prepare_write()
|
| /linux-6.15/fs/ext4/ |
| H A D | page-io.c | 426 bio = bio_alloc(bh->b_bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOIO); in io_submit_init_bio()
|
| /linux-6.15/fs/cachefiles/ |
| H A D | io.c | 637 stream->sreq_max_segs = BIO_MAX_VECS; in cachefiles_prepare_write_subreq()
|
| /linux-6.15/drivers/md/ |
| H A D | dm-crypt.c | 246 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16) 263 if (unlikely(val > BIO_MAX_VECS << PAGE_SHIFT)) in get_max_request_size() 264 val = BIO_MAX_VECS << PAGE_SHIFT; in get_max_request_size() 3332 ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr()
|
| H A D | dm-writecache.c | 2070 g->wc_list_contiguous = BIO_MAX_VECS; in writecache_writeback() 2073 if (unlikely(e->wc_list_contiguous == BIO_MAX_VECS)) { in writecache_writeback()
|
| /linux-6.15/fs/gfs2/ |
| H A D | lops.c | 268 struct bio *bio = bio_alloc(sb->s_bdev, BIO_MAX_VECS, 0, GFP_NOIO); in gfs2_log_alloc_bio()
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | request.c | 909 size_limit = min_t(unsigned int, BIO_MAX_VECS * PAGE_SECTORS, in cached_dev_cache_miss()
|