Home
last modified time | relevance | path

Searched refs:bio_src (Results 1 – 5 of 5) sorted by relevance

/block/
Dbounce.c140 static struct bio *bounce_clone_bio(struct bio *bio_src) in bounce_clone_bio() argument
167 bio = bio_alloc_bioset(GFP_NOIO, bio_segments(bio_src), in bounce_clone_bio()
169 bio->bi_bdev = bio_src->bi_bdev; in bounce_clone_bio()
170 if (bio_flagged(bio_src, BIO_REMAPPED)) in bounce_clone_bio()
172 bio->bi_opf = bio_src->bi_opf; in bounce_clone_bio()
173 bio->bi_ioprio = bio_src->bi_ioprio; in bounce_clone_bio()
174 bio->bi_write_hint = bio_src->bi_write_hint; in bounce_clone_bio()
175 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
176 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
184 bio->bi_io_vec[bio->bi_vcnt++] = bio_src->bi_io_vec[0]; in bounce_clone_bio()
[all …]
Dblk-crypto-fallback.c158 static struct bio *blk_crypto_fallback_clone_bio(struct bio *bio_src) in blk_crypto_fallback_clone_bio() argument
164 bio = bio_kmalloc(GFP_NOIO, bio_segments(bio_src)); in blk_crypto_fallback_clone_bio()
167 bio->bi_bdev = bio_src->bi_bdev; in blk_crypto_fallback_clone_bio()
168 if (bio_flagged(bio_src, BIO_REMAPPED)) in blk_crypto_fallback_clone_bio()
170 bio->bi_opf = bio_src->bi_opf; in blk_crypto_fallback_clone_bio()
171 bio->bi_ioprio = bio_src->bi_ioprio; in blk_crypto_fallback_clone_bio()
172 bio->bi_write_hint = bio_src->bi_write_hint; in blk_crypto_fallback_clone_bio()
173 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in blk_crypto_fallback_clone_bio()
174 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in blk_crypto_fallback_clone_bio()
176 bio_for_each_segment(bv, bio_src, iter) in blk_crypto_fallback_clone_bio()
[all …]
Dbio.c716 void __bio_clone_fast(struct bio *bio, struct bio *bio_src) in __bio_clone_fast() argument
724 bio->bi_bdev = bio_src->bi_bdev; in __bio_clone_fast()
726 if (bio_flagged(bio_src, BIO_THROTTLED)) in __bio_clone_fast()
728 if (bio_flagged(bio_src, BIO_REMAPPED)) in __bio_clone_fast()
730 bio->bi_opf = bio_src->bi_opf; in __bio_clone_fast()
731 bio->bi_ioprio = bio_src->bi_ioprio; in __bio_clone_fast()
732 bio->bi_write_hint = bio_src->bi_write_hint; in __bio_clone_fast()
733 bio->bi_iter = bio_src->bi_iter; in __bio_clone_fast()
734 bio->bi_io_vec = bio_src->bi_io_vec; in __bio_clone_fast()
736 bio_clone_blkg_association(bio, bio_src); in __bio_clone_fast()
Dbio-integrity.c403 int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument
406 struct bio_integrity_payload *bip_src = bio_integrity(bio_src); in bio_integrity_clone()
Dblk-core.c1587 struct bio *bio, *bio_src; in blk_rq_prep_clone() local
1592 __rq_for_each_bio(bio_src, rq_src) { in blk_rq_prep_clone()
1593 bio = bio_clone_fast(bio_src, gfp_mask, bs); in blk_rq_prep_clone()
1597 if (bio_ctr && bio_ctr(bio, bio_src, data)) in blk_rq_prep_clone()