| /linux/include/linux/ |
| H A D | bio.h | 13 #define BIO_MAX_VECS 256U macro 20 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs() 466 return iov_iter_npages(iter, BIO_MAX_VECS); in bio_iov_bounce_nr_vecs() 467 return iov_iter_npages(iter, BIO_MAX_VECS - 1) + 1; in bio_iov_bounce_nr_vecs()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | vio.h | 21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
|
| /linux/block/ |
| H A D | bio-integrity.c | 383 nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS + 1); in bio_integrity_map_user() 384 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user()
|
| H A D | fops.c | 256 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO() 425 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO() 426 if (likely(nr_pages <= BIO_MAX_VECS && in blkdev_direct_IO()
|
| H A D | bio.c | 48 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" }, 61 case 129 ... BIO_MAX_VECS: in biovec_slab() 201 WARN_ON_ONCE(bio->bi_max_vecs > BIO_MAX_VECS); in bio_free() 204 if (bio->bi_max_vecs == BIO_MAX_VECS) in bio_free() 605 nr_vecs = BIO_MAX_VECS; in bio_alloc_bioset()
|
| H A D | blk-map.c | 263 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
|
| /linux/fs/iomap/ |
| H A D | direct-io.c | 314 if (WARN_ON_ONCE(nr_vecs > BIO_MAX_VECS)) in iomap_dio_zero() 346 nr_vecs = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter_one() 1024 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in __iomap_dio_read_simple()
|
| H A D | ioend.c | 164 bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS, in iomap_alloc_ioend()
|
| /linux/drivers/nvme/target/ |
| H A D | passthru.c | 121 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl() 277 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
|
| /linux/fs/f2fs/ |
| H A D | segment.h | 990 return 8 * BIO_MAX_VECS; in nr_pages_to_skip() 1007 desired = BIO_MAX_VECS; in nr_pages_to_write()
|
| H A D | data.c | 993 bio = __bio_alloc(fio, BIO_MAX_VECS); in f2fs_merge_page_bio() 1093 io->bio = __bio_alloc(fio, BIO_MAX_VECS); in f2fs_submit_page_write()
|
| H A D | f2fs.h | 738 #define RECOVERY_MAX_RA_BLOCKS BIO_MAX_VECS
|
| /linux/drivers/md/ |
| H A D | dm-crypt.c | 248 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16) 276 val = min(val, BIO_MAX_VECS << PAGE_SHIFT); in get_max_request_sectors() 3273 ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr() 3693 BIO_MAX_VECS << PAGE_SECTORS_SHIFT); in crypt_io_hints() 3696 BIO_MAX_VECS << PAGE_SHIFT); in crypt_io_hints() 3698 BIO_MAX_VECS << PAGE_SHIFT); in crypt_io_hints()
|
| H A D | raid5-ppl.c | 495 bio = bio_alloc_bioset(prev->bi_bdev, BIO_MAX_VECS, in ppl_submit_iounit()
|
| H A D | raid1.c | 1535 if (atomic && max_sectors > BIO_MAX_VECS * (PAGE_SIZE >> 9)) in raid1_write_request() 1580 BIO_MAX_VECS * (PAGE_SIZE >> 9)); in raid1_write_request()
|
| /linux/fs/ |
| H A D | mpage.c | 597 bio = bio_alloc(bdev, BIO_MAX_VECS, in mpage_write_folio()
|
| /linux/fs/btrfs/ |
| H A D | direct-io.c | 404 len = min_t(u64, len, fs_info->sectorsize * BIO_MAX_VECS); in btrfs_dio_iomap_begin()
|
| H A D | relocation.c | 4116 bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, BTRFS_I(fs_info->btree_inode), in copy_remapped_data_io() 4129 bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, in copy_remapped_data_io() 4175 to_copy = min_t(u64, to_copy, BIO_MAX_VECS << PAGE_SHIFT); in copy_remapped_data()
|
| H A D | extent_io.c | 755 bbio = btrfs_bio_alloc(BIO_MAX_VECS, bio_ctrl->opf, inode, in alloc_new_bio()
|
| H A D | inode.c | 9646 bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0, in btrfs_encoded_read_regular_fill_pages() 9657 bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0, in btrfs_encoded_read_regular_fill_pages()
|
| /linux/fs/xfs/ |
| H A D | xfs_zone_gc.c | 59 static_assert(XFS_GC_NR_BUFS < BIO_MAX_VECS);
|
| /linux/drivers/md/bcache/ |
| H A D | request.c | 909 size_limit = min_t(unsigned int, BIO_MAX_VECS * PAGE_SECTORS, in cached_dev_cache_miss()
|
| /linux/fs/erofs/ |
| H A D | zdata.c | 1726 bio = bio_alloc(mdev.m_bdev, BIO_MAX_VECS, in z_erofs_submit_queue()
|
| /linux/fs/ntfs3/ |
| H A D | fsntfs.c | 1641 new = bio_alloc(bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOFS); in ntfs_bio_fill_1()
|
| /linux/drivers/vhost/ |
| H A D | scsi.c | 867 cmd->tvc_sgl_count > BIO_MAX_VECS) { in vhost_scsi_map_to_sgl()
|