Home
last modified time | relevance | path

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

/linux-4.1.27/fs/nilfs2/
Dsegbuf.c39 int nr_vecs; member
389 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_submit_bio()
408 int nr_vecs) in nilfs_alloc_seg_bio() argument
412 bio = bio_alloc(GFP_NOIO, nr_vecs); in nilfs_alloc_seg_bio()
414 while (!bio && (nr_vecs >>= 1)) in nilfs_alloc_seg_bio()
415 bio = bio_alloc(GFP_NOIO, nr_vecs); in nilfs_alloc_seg_bio()
431 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_prepare_write()
442 BUG_ON(wi->nr_vecs <= 0); in nilfs_segbuf_submit_bh()
446 wi->nr_vecs); in nilfs_segbuf_submit_bh()
/linux-4.1.27/block/
Dbio-integrity.c47 unsigned int nr_vecs) in bio_integrity_alloc() argument
56 sizeof(struct bio_vec) * nr_vecs, gfp_mask); in bio_integrity_alloc()
57 inline_vecs = nr_vecs; in bio_integrity_alloc()
68 if (nr_vecs > inline_vecs) { in bio_integrity_alloc()
69 bip->bip_vec = bvec_alloc(gfp_mask, nr_vecs, &idx, in bio_integrity_alloc()
Dbio.c45 #define BV(x) { .nr_vecs = x, .name = "biovec-"__stringify(x) }
158 return bvec_slabs[idx].nr_vecs; in bvec_nr_vecs()
2051 if (bvs->nr_vecs <= BIO_INLINE_VECS) { in biovec_init_slabs()
2056 size = bvs->nr_vecs * sizeof(struct bio_vec); in biovec_init_slabs()
/linux-4.1.27/drivers/target/
Dtarget_core_pscsi.c855 static inline struct bio *pscsi_get_bio(int nr_vecs) in pscsi_get_bio() argument
862 bio = bio_kmalloc(GFP_KERNEL, nr_vecs); in pscsi_get_bio()
883 int nr_vecs = 0, rc; in pscsi_map_sg() local
910 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); in pscsi_map_sg()
911 nr_pages -= nr_vecs; in pscsi_map_sg()
915 bio = pscsi_get_bio(nr_vecs); in pscsi_map_sg()
924 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg()
947 bio->bi_vcnt, nr_vecs); in pscsi_map_sg()
949 if (bio->bi_vcnt > nr_vecs) { in pscsi_map_sg()
/linux-4.1.27/fs/
Dmpage.c68 sector_t first_sector, int nr_vecs, in mpage_alloc() argument
73 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
76 while (!bio && (nr_vecs /= 2)) in mpage_alloc()
77 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
Ddirect-io.c357 sector_t first_sector, int nr_vecs) in dio_bio_alloc() argument
365 bio = bio_alloc(GFP_KERNEL, nr_vecs); in dio_bio_alloc()
Dsplice.c1438 unsigned int nr_vecs, struct page **pages, in get_iovec_page_array() argument
1444 while (nr_vecs) { in get_iovec_page_array()
1522 nr_vecs--; in get_iovec_page_array()
/linux-4.1.27/fs/btrfs/
Dcompression.c100 int nr_vecs; in compressed_bio_alloc() local
102 nr_vecs = bio_get_nr_vecs(bdev); in compressed_bio_alloc()
103 return btrfs_bio_alloc(bdev, first_byte >> 9, nr_vecs, gfp_flags); in compressed_bio_alloc()
Dextent_io.h329 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
Dextent_io.c2691 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs, in btrfs_bio_alloc() argument
2697 bio = bio_alloc_bioset(gfp_flags, nr_vecs, btrfs_bioset); in btrfs_bio_alloc()
2700 while (!bio && (nr_vecs /= 2)) { in btrfs_bio_alloc()
2702 nr_vecs, btrfs_bioset); in btrfs_bio_alloc()
Dvolumes.c5787 int nr_vecs = bio_get_nr_vecs(dev->bdev); in breakup_stripe_bio() local
5791 bio = btrfs_bio_alloc(dev->bdev, physical >> 9, nr_vecs, GFP_NOFS); in breakup_stripe_bio()
Dinode.c8011 int nr_vecs = bio_get_nr_vecs(bdev); in btrfs_dio_bio_alloc() local
8012 return btrfs_bio_alloc(bdev, first_sector, nr_vecs, gfp_flags); in btrfs_dio_bio_alloc()
/linux-4.1.27/include/linux/
Dbio.h679 int nr_vecs; member