/linux/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/fs/erofs/ |
H A D | fileio.c | 9 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 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()
|
H A D | zdata.c | 1765 bio = bio_alloc(mdev.m_bdev, BIO_MAX_VECS, in z_erofs_submit_queue()
|
/linux/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 | 327 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 D | fops.c | 242 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 D | bounce.c | 214 if (i++ < BIO_MAX_VECS) in __blk_queue_bounce()
|
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-map.c | 277 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
|
H A D | blk-settings.c | 146 unsigned int max_segments = min(BIO_MAX_VECS, lim->max_segments); in blk_queue_max_guaranteed_bio()
|
/linux/fs/bcachefs/ |
H A D | fs-io-direct.c | 96 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 D | fs-io-buffered.c | 265 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 D | io_write.c | 728 pages = min(pages, BIO_MAX_VECS); in bch2_write_bio_alloc()
|
/linux/drivers/md/dm-vdo/ |
H A D | vio.h | 21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
|
/linux/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() 266 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
|
/linux/fs/iomap/ |
H A D | direct-io.c | 388 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 D | buffered-io.c | 1717 bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS, in iomap_alloc_ioend()
|
/linux/include/linux/ |
H A D | bio.h | 13 #define BIO_MAX_VECS 256U macro 19 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
|
/linux/fs/nilfs2/ |
H A D | segbuf.c | 370 wi->max_pages = BIO_MAX_VECS; in nilfs_segbuf_prepare_write()
|
/linux/fs/cachefiles/ |
H A D | io.c | 635 stream->sreq_max_segs = BIO_MAX_VECS; in cachefiles_prepare_write_subreq()
|
/linux/drivers/md/ |
H A D | dm-crypt.c | 245 #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 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/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/drivers/block/drbd/ |
H A D | drbd_int.h | 1259 #if DRBD_MAX_BIO_SIZE > (BIO_MAX_VECS << PAGE_SHIFT)
|