Lines Matching refs:nr_iovecs
266 * @nr_iovecs: number of iovecs to pre-allocate
278 struct bio *bio_alloc_bioset(gfp_t gfp_mask, int nr_iovecs, struct bio_set *bs)
292 if (unlikely(!nr_iovecs))
295 if (nr_iovecs <= BIO_INLINE_VECS) {
297 nr_iovecs = BIO_INLINE_VECS;
299 bvl = bvec_alloc_bs(gfp_mask, nr_iovecs, &idx, bs);
303 nr_iovecs = bvec_nr_vecs(idx);
307 bio->bi_max_vecs = nr_iovecs;
325 * @nr_iovecs: number of iovecs
328 * at least @nr_iovecs entries. Allocations will be done from the
341 struct bio *bio_alloc(gfp_t gfp_mask, int nr_iovecs)
343 struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set);
362 * @nr_iovecs: number of iovecs to pre-allocate
365 * Allocate a new bio with @nr_iovecs bvecs. If @gfp_mask contains
369 struct bio *bio_kmalloc(gfp_t gfp_mask, int nr_iovecs)
373 if (nr_iovecs > UIO_MAXIOV)
376 bio = kmalloc(sizeof(struct bio) + nr_iovecs * sizeof(struct bio_vec),
383 bio->bi_max_vecs = nr_iovecs;