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

/linux-4.1.27/fs/nilfs2/
H A Dsegbuf.c39 int nr_vecs; member in struct:nilfs_write_info
389 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); nilfs_segbuf_submit_bio()
402 * @nr_vecs: request size of page vector.
408 int nr_vecs) nilfs_alloc_seg_bio()
412 bio = bio_alloc(GFP_NOIO, nr_vecs); nilfs_alloc_seg_bio()
414 while (!bio && (nr_vecs >>= 1)) nilfs_alloc_seg_bio()
415 bio = bio_alloc(GFP_NOIO, nr_vecs); nilfs_alloc_seg_bio()
431 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); nilfs_segbuf_prepare_write()
442 BUG_ON(wi->nr_vecs <= 0); nilfs_segbuf_submit_bh()
446 wi->nr_vecs); nilfs_segbuf_submit_bh()
407 nilfs_alloc_seg_bio(struct the_nilfs *nilfs, sector_t start, int nr_vecs) nilfs_alloc_seg_bio() argument
/linux-4.1.27/block/
H A Dbio-integrity.c39 * @nr_vecs: Number of integrity metadata scatter-gather elements
42 * metadata. nr_vecs specifies the maximum number of pages containing
47 unsigned int nr_vecs) bio_integrity_alloc()
56 sizeof(struct bio_vec) * nr_vecs, gfp_mask); bio_integrity_alloc()
57 inline_vecs = nr_vecs; bio_integrity_alloc()
68 if (nr_vecs > inline_vecs) { bio_integrity_alloc()
69 bip->bip_vec = bvec_alloc(gfp_mask, nr_vecs, &idx, bio_integrity_alloc()
45 bio_integrity_alloc(struct bio *bio, gfp_t gfp_mask, unsigned int nr_vecs) bio_integrity_alloc() argument
H A Dbio.c45 #define BV(x) { .nr_vecs = x, .name = "biovec-"__stringify(x) }
158 return bvec_slabs[idx].nr_vecs; bvec_nr_vecs()
2051 if (bvs->nr_vecs <= BIO_INLINE_VECS) { biovec_init_slabs()
2056 size = bvs->nr_vecs * sizeof(struct bio_vec); biovec_init_slabs()
/linux-4.1.27/drivers/target/
H A Dtarget_core_pscsi.c855 static inline struct bio *pscsi_get_bio(int nr_vecs) pscsi_get_bio() argument
862 bio = bio_kmalloc(GFP_KERNEL, nr_vecs); pscsi_get_bio()
883 int nr_vecs = 0, rc; pscsi_map_sg() local
910 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); for_each_sg()
911 nr_pages -= nr_vecs; for_each_sg()
915 bio = pscsi_get_bio(nr_vecs); for_each_sg()
923 " dir: %s nr_vecs: %d\n", bio, for_each_sg()
924 (rw) ? "rw" : "r", nr_vecs); for_each_sg()
946 pr_debug("PSCSI: bio->bi_vcnt: %d nr_vecs: %d\n", for_each_sg()
947 bio->bi_vcnt, nr_vecs); for_each_sg()
949 if (bio->bi_vcnt > nr_vecs) { for_each_sg()
/linux-4.1.27/fs/
H A Dmpage.c68 sector_t first_sector, int nr_vecs, mpage_alloc()
73 bio = bio_alloc(gfp_flags, nr_vecs); mpage_alloc()
76 while (!bio && (nr_vecs /= 2)) mpage_alloc()
77 bio = bio_alloc(gfp_flags, nr_vecs); mpage_alloc()
67 mpage_alloc(struct block_device *bdev, sector_t first_sector, int nr_vecs, gfp_t gfp_flags) mpage_alloc() argument
H A Dsplice.c1438 unsigned int nr_vecs, struct page **pages, get_iovec_page_array()
1444 while (nr_vecs) { get_iovec_page_array()
1522 nr_vecs--; get_iovec_page_array()
1437 get_iovec_page_array(const struct iovec __user *iov, unsigned int nr_vecs, struct page **pages, struct partial_page *partial, bool aligned, unsigned int pipe_buffers) get_iovec_page_array() argument
H A Ddirect-io.c357 sector_t first_sector, int nr_vecs) dio_bio_alloc()
365 bio = bio_alloc(GFP_KERNEL, nr_vecs); dio_bio_alloc()
355 dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, struct block_device *bdev, sector_t first_sector, int nr_vecs) dio_bio_alloc() argument
/linux-4.1.27/fs/btrfs/
H A Dcompression.c100 int nr_vecs; compressed_bio_alloc() local
102 nr_vecs = bio_get_nr_vecs(bdev); compressed_bio_alloc()
103 return btrfs_bio_alloc(bdev, first_byte >> 9, nr_vecs, gfp_flags); compressed_bio_alloc()
H A Dextent_io.h329 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
H A Dextent_io.c2691 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs, btrfs_bio_alloc() argument
2697 bio = bio_alloc_bioset(gfp_flags, nr_vecs, btrfs_bioset); btrfs_bio_alloc()
2700 while (!bio && (nr_vecs /= 2)) { btrfs_bio_alloc()
2702 nr_vecs, btrfs_bioset); btrfs_bio_alloc()
H A Dvolumes.c5787 int nr_vecs = bio_get_nr_vecs(dev->bdev); breakup_stripe_bio() local
5791 bio = btrfs_bio_alloc(dev->bdev, physical >> 9, nr_vecs, GFP_NOFS); breakup_stripe_bio()
H A Dinode.c8011 int nr_vecs = bio_get_nr_vecs(bdev); btrfs_dio_bio_alloc() local
8012 return btrfs_bio_alloc(bdev, first_sector, nr_vecs, gfp_flags); btrfs_dio_bio_alloc()
/linux-4.1.27/include/linux/
H A Dbio.h679 int nr_vecs; member in struct:biovec_slab

Completed in 429 milliseconds