Home
last modified time | relevance | path

Searched refs:BIO_MAX_VECS (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.12.1/fs/crypto/
Dbio.c59 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.12.1/fs/erofs/
Dfileio.c9 struct bio_vec bvecs[BIO_MAX_VECS];
69 bio_init(&rq->bio, NULL, rq->bvecs, BIO_MAX_VECS, REQ_OP_READ); in erofs_fileio_rq_alloc()
Dfscache.c180 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.12.1/block/
Dbio.c45 { .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()
Dfops.c245 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO()
380 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO()
381 if (likely(nr_pages <= BIO_MAX_VECS)) { in blkdev_direct_IO()
Dbio-integrity.c330 nr_vecs = iov_iter_npages(&iter, BIO_MAX_VECS + 1); in bio_integrity_map_user()
331 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user()
Dbounce.c214 if (i++ < BIO_MAX_VECS) in __blk_queue_bounce()
Dblk-lib.c192 return min(pages, (sector_t)BIO_MAX_VECS); in __blkdev_sectors_to_bio_pages()
Dblk-crypto-fallback.c221 if (++i == BIO_MAX_VECS) in blk_crypto_fallback_split_bio_if_needed()
Dblk-settings.c147 unsigned int max_segments = min(BIO_MAX_VECS, lim->max_segments); in blk_queue_max_guaranteed_bio()
Dblk-map.c277 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
/linux-6.12.1/drivers/md/dm-vdo/
Dvio.h21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
/linux-6.12.1/fs/bcachefs/
Dfs-io-direct.c96 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in bch2_direct_IO_read()
134 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in bch2_direct_IO_read()
628 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in bch2_direct_write()
Dfs-io-buffered.c265 BIO_MAX_VECS); in bch2_readahead()
375 (bio->bi_iter.bi_size + len > BIO_MAX_VECS * PAGE_SIZE); in bch_io_full()
465 w->io = container_of(bio_alloc_bioset(NULL, BIO_MAX_VECS, in bch2_writepage_io_alloc()
/linux-6.12.1/drivers/nvme/target/
Dpassthru.c112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
266 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
/linux-6.12.1/include/linux/
Dbio.h13 #define BIO_MAX_VECS 256U macro
19 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
/linux-6.12.1/fs/iomap/
Ddirect-io.c387 nr_pages = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter()
429 BIO_MAX_VECS); in iomap_dio_bio_iter()
/linux-6.12.1/fs/f2fs/
Dsegment.h910 return 8 * BIO_MAX_VECS; in nr_pages_to_skip()
927 desired = BIO_MAX_VECS; in nr_pages_to_write()
/linux-6.12.1/fs/nilfs2/
Dsegbuf.c367 wi->max_pages = BIO_MAX_VECS; in nilfs_segbuf_prepare_write()
/linux-6.12.1/fs/
Dmpage.c596 bio = bio_alloc(bdev, BIO_MAX_VECS, in __mpage_writepage()
/linux-6.12.1/fs/ext4/
Dpage-io.c399 bio = bio_alloc(bh->b_bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOIO); in io_submit_init_bio()
/linux-6.12.1/fs/cachefiles/
Dio.c635 stream->sreq_max_segs = BIO_MAX_VECS; in cachefiles_prepare_write_subreq()
/linux-6.12.1/drivers/md/
Ddm-crypt.c245 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16)
262 if (unlikely(val > BIO_MAX_VECS << PAGE_SHIFT)) in get_max_request_size()
263 val = BIO_MAX_VECS << PAGE_SHIFT; in get_max_request_size()
3363 ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr()
Ddm-writecache.c2070 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.12.1/fs/gfs2/
Dlops.c268 struct bio *bio = bio_alloc(sb->s_bdev, BIO_MAX_VECS, 0, GFP_NOIO); in gfs2_log_alloc_bio()

12