Home
last modified time | relevance | path

Searched refs:nr_vecs (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/fs/nilfs2/
Dsegbuf.c26 int nr_vecs; member
365 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_submit_bio()
384 int nr_vecs) in nilfs_alloc_seg_bio() argument
388 bio = bio_alloc(GFP_NOIO, nr_vecs); in nilfs_alloc_seg_bio()
390 while (!bio && (nr_vecs >>= 1)) in nilfs_alloc_seg_bio()
391 bio = bio_alloc(GFP_NOIO, nr_vecs); in nilfs_alloc_seg_bio()
407 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_prepare_write()
418 BUG_ON(wi->nr_vecs <= 0); in nilfs_segbuf_submit_bh()
422 wi->nr_vecs); in nilfs_segbuf_submit_bh()
/Linux-v4.19/block/
Dbio-integrity.c53 unsigned int nr_vecs) in bio_integrity_alloc() argument
61 sizeof(struct bio_vec) * nr_vecs, gfp_mask); in bio_integrity_alloc()
62 inline_vecs = nr_vecs; in bio_integrity_alloc()
73 if (nr_vecs > inline_vecs) { in bio_integrity_alloc()
76 bip->bip_vec = bvec_alloc(gfp_mask, nr_vecs, &idx, in bio_integrity_alloc()
Dbio.c48 #define BV(x, n) { .nr_vecs = x, .name = "biovec-"#n }
161 return bvec_slabs[--idx].nr_vecs; in bvec_nr_vecs()
2065 if (bvs->nr_vecs <= BIO_INLINE_VECS) { in biovec_init_slabs()
2070 size = bvs->nr_vecs * sizeof(struct bio_vec); in biovec_init_slabs()
/Linux-v4.19/drivers/target/
Dtarget_core_pscsi.c859 static inline struct bio *pscsi_get_bio(int nr_vecs) in pscsi_get_bio() argument
866 bio = bio_kmalloc(GFP_KERNEL, nr_vecs); in pscsi_get_bio()
887 int nr_vecs = 0, rc; in pscsi_map_sg() local
915 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); in pscsi_map_sg()
916 nr_pages -= nr_vecs; in pscsi_map_sg()
920 bio = pscsi_get_bio(nr_vecs); in pscsi_map_sg()
929 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg()
939 bio_segments(bio), nr_vecs); in pscsi_map_sg()
/Linux-v4.19/fs/
Dmpage.c72 sector_t first_sector, int nr_vecs, in mpage_alloc() argument
79 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
82 while (!bio && (nr_vecs /= 2)) in mpage_alloc()
83 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
Ddirect-io.c430 sector_t first_sector, int nr_vecs) in dio_bio_alloc() argument
438 bio = bio_alloc(GFP_KERNEL, nr_vecs); in dio_bio_alloc()
Diomap.c331 int nr_vecs = (length + PAGE_SIZE - 1) >> PAGE_SHIFT; in iomap_readpage_actor() local
338 ctx->bio = bio_alloc(gfp, min(BIO_MAX_PAGES, nr_vecs)); in iomap_readpage_actor()
/Linux-v4.19/include/linux/
Dbio.h767 int nr_vecs; member