Lines Matching refs:nr_iovecs
405 * @nr_iovecs: number of iovecs to pre-allocate
437 struct bio *bio_alloc_bioset(gfp_t gfp_mask, unsigned int nr_iovecs,
448 if (nr_iovecs > UIO_MAXIOV)
451 p = kmalloc(struct_size(bio, bi_inline_vecs, nr_iovecs), gfp_mask);
453 inline_vecs = nr_iovecs;
455 /* should not use nobvec bioset for nr_iovecs > 0 */
457 nr_iovecs > 0))
503 if (nr_iovecs > inline_vecs) {
506 bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool);
510 bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool);
517 } else if (nr_iovecs) {
522 bio->bi_max_vecs = nr_iovecs;