Home
last modified time | relevance | path

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

12

/linux/fs/crypto/
H A 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/fs/erofs/
H A Dfileio.c9 struct bio_vec bvecs[BIO_MAX_VECS];
71 bio_init(&rq->bio, NULL, rq->bvecs, BIO_MAX_VECS, REQ_OP_READ); in erofs_fileio_rq_alloc()
H A 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()
H A Dzdata.c1765 bio = bio_alloc(mdev.m_bdev, BIO_MAX_VECS, in z_erofs_submit_queue()
/linux/block/
H A 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()
H A Dbio-integrity.c327 nr_vecs = iov_iter_npages(&iter, BIO_MAX_VECS + 1); in bio_integrity_map_user()
328 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user()
H A Dfops.c242 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO()
376 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO()
377 if (likely(nr_pages <= BIO_MAX_VECS)) { in blkdev_direct_IO()
H A Dbounce.c214 if (i++ < BIO_MAX_VECS) in __blk_queue_bounce()
H A Dblk-lib.c192 return min(pages, (sector_t)BIO_MAX_VECS); in __blkdev_sectors_to_bio_pages()
H A Dblk-map.c277 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
H A Dblk-settings.c146 unsigned int max_segments = min(BIO_MAX_VECS, lim->max_segments); in blk_queue_max_guaranteed_bio()
/linux/fs/bcachefs/
H A 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()
H A 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()
H A Dio_write.c728 pages = min(pages, BIO_MAX_VECS); in bch2_write_bio_alloc()
/linux/drivers/md/dm-vdo/
H A Dvio.h21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
/linux/drivers/nvme/target/
H A 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/fs/iomap/
H A Ddirect-io.c388 nr_pages = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter()
441 BIO_MAX_VECS); in iomap_dio_bio_iter()
H A Dbuffered-io.c1717 bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS, in iomap_alloc_ioend()
/linux/include/linux/
H A Dbio.h13 #define BIO_MAX_VECS 256U macro
19 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
/linux/fs/nilfs2/
H A Dsegbuf.c370 wi->max_pages = BIO_MAX_VECS; in nilfs_segbuf_prepare_write()
/linux/fs/cachefiles/
H A Dio.c635 stream->sreq_max_segs = BIO_MAX_VECS; in cachefiles_prepare_write_subreq()
/linux/drivers/md/
H A 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()
H A 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/fs/gfs2/
H A Dlops.c268 struct bio *bio = bio_alloc(sb->s_bdev, BIO_MAX_VECS, 0, GFP_NOIO); in gfs2_log_alloc_bio()
/linux/drivers/block/drbd/
H A Ddrbd_int.h1259 #if DRBD_MAX_BIO_SIZE > (BIO_MAX_VECS << PAGE_SHIFT)

12