Home
last modified time | relevance | path

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

12

/Linux-v5.15/fs/crypto/
Dbio.c55 bio = bio_alloc(GFP_NOFS, BIO_MAX_VECS); in fscrypt_zeroout_range_inline_crypt()
77 if (num_pages == BIO_MAX_VECS || !len || in fscrypt_zeroout_range_inline_crypt()
129 BUILD_BUG_ON(ARRAY_SIZE(pages) > BIO_MAX_VECS); in fscrypt_zeroout_range()
/Linux-v5.15/block/
Dbio.c41 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" },
54 case 129 ... BIO_MAX_VECS: in biovec_slab()
159 BIO_BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free()
161 if (nr_vecs == BIO_MAX_VECS) in bvec_free()
196 if (*nr_vecs < BIO_MAX_VECS) { in bvec_alloc()
202 *nr_vecs = BIO_MAX_VECS; in bvec_alloc()
Dfops.c261 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO()
328 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO()
329 if (is_sync_kiocb(iocb) && nr_pages <= BIO_MAX_VECS) in blkdev_direct_IO()
Dbounce.c220 if (i++ < BIO_MAX_VECS) in __blk_queue_bounce()
Dblk-lib.c300 return min(pages, (sector_t)BIO_MAX_VECS); in __blkdev_sectors_to_bio_pages()
Dblk-map.c244 bio = bio_kmalloc(gfp_mask, iov_iter_npages(iter, BIO_MAX_VECS)); in bio_map_user_iov()
Dblk-crypto-fallback.c222 if (++i == BIO_MAX_VECS) in blk_crypto_split_bio_if_needed()
/Linux-v5.15/drivers/nvme/target/
Dpassthru.c65 max_hw_sectors = min_not_zero(BIO_MAX_VECS << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
204 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
/Linux-v5.15/fs/squashfs/
Dblock.c89 if (page_count <= BIO_MAX_VECS) in squashfs_bio_read()
/Linux-v5.15/include/linux/
Dbio.h22 #define BIO_MAX_VECS 256U macro
26 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
/Linux-v5.15/fs/iomap/
Ddirect-io.c299 nr_pages = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter()
341 BIO_MAX_VECS); in iomap_dio_bio_iter()
Dbuffered-io.c1183 bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_VECS, &iomap_ioend_bioset); in iomap_alloc_ioend()
1213 new = bio_alloc(GFP_NOFS, BIO_MAX_VECS); in iomap_chain_bio()
/Linux-v5.15/fs/f2fs/
Dsegment.h864 return 8 * BIO_MAX_VECS; in nr_pages_to_skip()
881 desired = BIO_MAX_VECS; in nr_pages_to_write()
/Linux-v5.15/fs/ext4/
Dpage-io.c401 bio = bio_alloc(GFP_NOIO, BIO_MAX_VECS); in io_submit_init_bio()
/Linux-v5.15/fs/nilfs2/
Dsegbuf.c402 wi->max_pages = BIO_MAX_VECS; in nilfs_segbuf_prepare_write()
/Linux-v5.15/fs/
Dmpage.c619 BIO_MAX_VECS, GFP_NOFS|__GFP_HIGH); in __mpage_writepage()
/Linux-v5.15/drivers/md/
Ddm-crypt.c232 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16)
3253 ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr()
3394 if (unlikely(bio->bi_iter.bi_size > (BIO_MAX_VECS << PAGE_SHIFT)) && in crypt_map()
3396 dm_accept_partial_bio(bio, ((BIO_MAX_VECS << PAGE_SHIFT) >> SECTOR_SHIFT)); in crypt_map()
Ddm-writecache.c2046 g->wc_list_contiguous = BIO_MAX_VECS; in writecache_writeback()
2049 if (unlikely(e->wc_list_contiguous == BIO_MAX_VECS)) { in writecache_writeback()
Draid5-cache.c738 struct bio *bio = bio_alloc_bioset(GFP_NOIO, BIO_MAX_VECS, &log->bs); in r5l_bio_alloc()
1637 ctx->ra_bio = bio_alloc_bioset(GFP_KERNEL, BIO_MAX_VECS, &log->bs); in r5l_recovery_allocate_ra_pool()
Draid5-ppl.c499 bio = bio_alloc_bioset(GFP_NOIO, BIO_MAX_VECS, in ppl_submit_iounit()
/Linux-v5.15/fs/gfs2/
Dlops.c268 struct bio *bio = bio_alloc(GFP_NOIO, BIO_MAX_VECS); in gfs2_log_alloc_bio()
/Linux-v5.15/fs/erofs/
Dzdata.c1316 bio = bio_alloc(GFP_NOIO, BIO_MAX_VECS); in z_erofs_submit_queue()
/Linux-v5.15/drivers/md/bcache/
Drequest.c896 size_limit = min_t(unsigned int, BIO_MAX_VECS * PAGE_SECTORS, in cached_dev_cache_miss()
/Linux-v5.15/fs/zonefs/
Dsuper.c691 nr_pages = iov_iter_npages(from, BIO_MAX_VECS); in zonefs_file_dio_append()
/Linux-v5.15/drivers/block/drbd/
Ddrbd_int.h1327 #if DRBD_MAX_BIO_SIZE > (BIO_MAX_VECS << PAGE_SHIFT)

12