Symbol: BIO_MAX_VECS
block/bio-integrity.c
383
nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS + 1);
block/bio-integrity.c
384
if (nr_vecs > BIO_MAX_VECS)
block/bio.c
201
WARN_ON_ONCE(bio->bi_max_vecs > BIO_MAX_VECS);
block/bio.c
204
if (bio->bi_max_vecs == BIO_MAX_VECS)
block/bio.c
48
{ .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" },
block/bio.c
605
nr_vecs = BIO_MAX_VECS;
block/bio.c
61
case 129 ... BIO_MAX_VECS:
block/blk-crypto-fallback.c
25
static unsigned int num_prealloc_bounce_pg = BIO_MAX_VECS;
block/blk-crypto-fallback.c
274
nr_enc_pages = min(bio_segments(src_bio), BIO_MAX_VECS);
block/blk-lib.c
184
return min(pages, (sector_t)BIO_MAX_VECS);
block/blk-map.c
263
unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS);
block/blk-settings.c
221
unsigned int max_segments = min(BIO_MAX_VECS, lim->max_segments);
block/fops.c
254
nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS);
block/fops.c
425
nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1);
block/fops.c
426
if (likely(nr_pages <= BIO_MAX_VECS &&
drivers/block/drbd/drbd_int.h
1264
#if DRBD_MAX_BIO_SIZE > (BIO_MAX_VECS << PAGE_SHIFT)
drivers/md/bcache/request.c
909
size_limit = min_t(unsigned int, BIO_MAX_VECS * PAGE_SECTORS,
drivers/md/bcache/super.c
907
.max_segments = BIO_MAX_VECS,
drivers/md/dm-crypt.c
248
#define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16)
drivers/md/dm-crypt.c
276
val = min(val, BIO_MAX_VECS << PAGE_SHIFT);
drivers/md/dm-crypt.c
3274
ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc);
drivers/md/dm-crypt.c
3694
BIO_MAX_VECS << PAGE_SECTORS_SHIFT);
drivers/md/dm-crypt.c
3697
BIO_MAX_VECS << PAGE_SHIFT);
drivers/md/dm-crypt.c
3699
BIO_MAX_VECS << PAGE_SHIFT);
drivers/md/dm-vdo/vio.h
21
MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
drivers/md/dm-writecache.c
2060
g->wc_list_contiguous = BIO_MAX_VECS;
drivers/md/dm-writecache.c
2063
if (unlikely(e->wc_list_contiguous == BIO_MAX_VECS)) {
drivers/md/raid1.c
1638
BIO_MAX_VECS * (PAGE_SIZE >> 9));
drivers/md/raid5-cache.c
736
struct bio *bio = bio_alloc_bioset(log->rdev->bdev, BIO_MAX_VECS,
drivers/md/raid5-ppl.c
495
bio = bio_alloc_bioset(prev->bi_bdev, BIO_MAX_VECS,
drivers/nvme/target/passthru.c
112
max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT,
drivers/nvme/target/passthru.c
268
if (req->sg_cnt > BIO_MAX_VECS)
drivers/vhost/scsi.c
837
cmd->tvc_sgl_count > BIO_MAX_VECS) {
fs/btrfs/direct-io.c
399
len = min_t(u64, len, fs_info->sectorsize * BIO_MAX_VECS);
fs/btrfs/extent_io.c
733
bbio = btrfs_bio_alloc(BIO_MAX_VECS, bio_ctrl->opf, inode,
fs/btrfs/inode.c
9434
bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0,
fs/btrfs/inode.c
9445
bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0,
fs/btrfs/relocation.c
4078
bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, BTRFS_I(fs_info->btree_inode),
fs/btrfs/relocation.c
4091
bbio = btrfs_bio_alloc(BIO_MAX_VECS, op,
fs/btrfs/relocation.c
4137
to_copy = min_t(u64, to_copy, BIO_MAX_VECS << PAGE_SHIFT);
fs/cachefiles/io.c
635
stream->sreq_max_segs = BIO_MAX_VECS;
fs/crypto/bio.c
155
BUILD_BUG_ON(ARRAY_SIZE(pages) > BIO_MAX_VECS);
fs/crypto/bio.c
85
bio = bio_alloc(inode->i_sb->s_bdev, BIO_MAX_VECS, REQ_OP_WRITE,
fs/crypto/bio.c
92
for (n = 0; n < BIO_MAX_VECS; n++) {
fs/erofs/zdata.c
1742
bio = bio_alloc(mdev.m_bdev, BIO_MAX_VECS,
fs/ext4/page-io.c
428
bio = bio_alloc(bh->b_bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOIO);
fs/f2fs/data.c
1006
bio = __bio_alloc(fio, BIO_MAX_VECS);
fs/f2fs/data.c
1106
io->bio = __bio_alloc(fio, BIO_MAX_VECS);
fs/f2fs/f2fs.h
732
#define RECOVERY_MAX_RA_BLOCKS BIO_MAX_VECS
fs/f2fs/segment.c
4978
readed = f2fs_ra_meta_pages(sbi, start_blk, BIO_MAX_VECS,
fs/f2fs/segment.h
981
return 8 * BIO_MAX_VECS;
fs/f2fs/segment.h
998
desired = BIO_MAX_VECS;
fs/gfs2/lops.c
266
struct bio *bio = bio_alloc(sb->s_bdev, BIO_MAX_VECS, opf, GFP_NOIO);
fs/iomap/direct-io.c
313
if (WARN_ON_ONCE(nr_vecs > BIO_MAX_VECS))
fs/iomap/direct-io.c
345
nr_vecs = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS);
fs/iomap/ioend.c
163
bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS,
fs/mpage.c
597
bio = bio_alloc(bdev, BIO_MAX_VECS,
fs/nilfs2/segbuf.c
370
wi->max_pages = BIO_MAX_VECS;
fs/ntfs3/fsntfs.c
1635
new = bio_alloc(bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOFS);
fs/xfs/xfs_zone_gc.c
59
static_assert(XFS_GC_NR_BUFS < BIO_MAX_VECS);
include/linux/bio.h
20
return min(nr_segs, BIO_MAX_VECS);
include/linux/bio.h
427
return iov_iter_npages(iter, BIO_MAX_VECS);
include/linux/bio.h
428
return iov_iter_npages(iter, BIO_MAX_VECS - 1) + 1;