Searched refs:bio_src (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/block/ |
H A D | bounce.c | 141 static struct bio *bounce_clone_bio(struct bio *bio_src) in bounce_clone_bio() argument 167 bio = bio_alloc_bioset(bio_src->bi_bdev, bio_segments(bio_src), in bounce_clone_bio() 168 bio_src->bi_opf, GFP_NOIO, &bounce_bio_set); in bounce_clone_bio() 169 if (bio_flagged(bio_src, BIO_REMAPPED)) in bounce_clone_bio() 171 bio->bi_ioprio = bio_src->bi_ioprio; in bounce_clone_bio() 172 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio() 173 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio() 181 bio_for_each_segment(bv, bio_src, iter) in bounce_clone_bio() 186 if (bio_crypt_clone(bio, bio_src, GFP_NOIO) < 0) in bounce_clone_bio() 189 if (bio_integrity(bio_src) && in bounce_clone_bio() [all …]
|
H A D | blk-crypto-fallback.c | 160 static struct bio *blk_crypto_fallback_clone_bio(struct bio *bio_src) in blk_crypto_fallback_clone_bio() argument 162 unsigned int nr_segs = bio_segments(bio_src); in blk_crypto_fallback_clone_bio() 170 bio_init(bio, bio_src->bi_bdev, bio->bi_inline_vecs, nr_segs, in blk_crypto_fallback_clone_bio() 171 bio_src->bi_opf); in blk_crypto_fallback_clone_bio() 172 if (bio_flagged(bio_src, BIO_REMAPPED)) in blk_crypto_fallback_clone_bio() 174 bio->bi_ioprio = bio_src->bi_ioprio; in blk_crypto_fallback_clone_bio() 175 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in blk_crypto_fallback_clone_bio() 176 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in blk_crypto_fallback_clone_bio() 178 bio_for_each_segment(bv, bio_src, iter) in blk_crypto_fallback_clone_bio() 181 bio_clone_blkg_association(bio, bio_src); in blk_crypto_fallback_clone_bio()
|
H A D | bio.c | 812 static int __bio_clone(struct bio *bio, struct bio *bio_src, gfp_t gfp) in __bio_clone() argument 815 bio->bi_ioprio = bio_src->bi_ioprio; in __bio_clone() 816 bio->bi_iter = bio_src->bi_iter; in __bio_clone() 819 if (bio->bi_bdev == bio_src->bi_bdev && in __bio_clone() 820 bio_flagged(bio_src, BIO_REMAPPED)) in __bio_clone() 822 bio_clone_blkg_association(bio, bio_src); in __bio_clone() 825 if (bio_crypt_clone(bio, bio_src, gfp) < 0) in __bio_clone() 827 if (bio_integrity(bio_src) && in __bio_clone() 828 bio_integrity_clone(bio, bio_src, gfp) < 0) in __bio_clone() 845 struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src, in bio_alloc_clone() argument [all …]
|
H A D | bio-integrity.c | 409 int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument 412 struct bio_integrity_payload *bip_src = bio_integrity(bio_src); in bio_integrity_clone()
|
H A D | blk-mq.c | 3189 struct bio *bio, *bio_src; in blk_rq_prep_clone() local 3194 __rq_for_each_bio(bio_src, rq_src) { in blk_rq_prep_clone() 3195 bio = bio_alloc_clone(rq->q->disk->part0, bio_src, gfp_mask, in blk_rq_prep_clone() 3200 if (bio_ctr && bio_ctr(bio, bio_src, data)) in blk_rq_prep_clone()
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_req.c | 24 static struct drbd_request *drbd_req_new(struct drbd_device *device, struct bio *bio_src) in drbd_req_new() argument 33 req->rq_state = (bio_data_dir(bio_src) == WRITE ? RQ_WRITE : 0) in drbd_req_new() 34 | (bio_op(bio_src) == REQ_OP_WRITE_ZEROES ? RQ_ZEROES : 0) in drbd_req_new() 35 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new() 37 req->master_bio = bio_src; in drbd_req_new() 41 req->i.sector = bio_src->bi_iter.bi_sector; in drbd_req_new() 42 req->i.size = bio_src->bi_iter.bi_size; in drbd_req_new()
|
/openbmc/linux/include/linux/ |
H A D | bio.h | 425 struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src, 428 struct bio *bio_src, gfp_t gfp); 756 static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument
|