Home
last modified time | relevance | path

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

/Linux-v5.4/block/
Dbounce.c217 static struct bio *bounce_clone_bio(struct bio *bio_src, gfp_t gfp_mask, in bounce_clone_bio() argument
246 bio = bio_alloc_bioset(gfp_mask, bio_segments(bio_src), bs); in bounce_clone_bio()
249 bio->bi_disk = bio_src->bi_disk; in bounce_clone_bio()
250 bio->bi_opf = bio_src->bi_opf; in bounce_clone_bio()
251 bio->bi_ioprio = bio_src->bi_ioprio; in bounce_clone_bio()
252 bio->bi_write_hint = bio_src->bi_write_hint; in bounce_clone_bio()
253 bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; in bounce_clone_bio()
254 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
262 bio->bi_io_vec[bio->bi_vcnt++] = bio_src->bi_io_vec[0]; in bounce_clone_bio()
265 bio_for_each_segment(bv, bio_src, iter) in bounce_clone_bio()
[all …]
Dbio.c573 void __bio_clone_fast(struct bio *bio, struct bio *bio_src) in __bio_clone_fast() argument
581 bio->bi_disk = bio_src->bi_disk; in __bio_clone_fast()
582 bio->bi_partno = bio_src->bi_partno; in __bio_clone_fast()
584 if (bio_flagged(bio_src, BIO_THROTTLED)) in __bio_clone_fast()
586 bio->bi_opf = bio_src->bi_opf; in __bio_clone_fast()
587 bio->bi_ioprio = bio_src->bi_ioprio; in __bio_clone_fast()
588 bio->bi_write_hint = bio_src->bi_write_hint; in __bio_clone_fast()
589 bio->bi_iter = bio_src->bi_iter; in __bio_clone_fast()
590 bio->bi_io_vec = bio_src->bi_io_vec; in __bio_clone_fast()
592 bio_clone_blkg_association(bio, bio_src); in __bio_clone_fast()
Dbio-integrity.c406 int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument
409 struct bio_integrity_payload *bip_src = bio_integrity(bio_src); in bio_integrity_clone()
Dblk-core.c1621 struct bio *bio, *bio_src; in blk_rq_prep_clone() local
1626 __rq_for_each_bio(bio_src, rq_src) { in blk_rq_prep_clone()
1627 bio = bio_clone_fast(bio_src, gfp_mask, bs); in blk_rq_prep_clone()
1631 if (bio_ctr && bio_ctr(bio, bio_src, data)) in blk_rq_prep_clone()
/Linux-v5.4/drivers/block/drbd/
Ddrbd_req.h259 static inline void drbd_req_make_private_bio(struct drbd_request *req, struct bio *bio_src) in drbd_req_make_private_bio() argument
262 bio = bio_clone_fast(bio_src, GFP_NOIO, &drbd_io_bio_set); in drbd_req_make_private_bio()
Ddrbd_req.c42 static struct drbd_request *drbd_req_new(struct drbd_device *device, struct bio *bio_src) in drbd_req_new() argument
51 drbd_req_make_private_bio(req, bio_src); in drbd_req_new()
52 req->rq_state = (bio_data_dir(bio_src) == WRITE ? RQ_WRITE : 0) in drbd_req_new()
53 | (bio_op(bio_src) == REQ_OP_WRITE_SAME ? RQ_WSAME : 0) in drbd_req_new()
54 | (bio_op(bio_src) == REQ_OP_WRITE_ZEROES ? RQ_ZEROES : 0) in drbd_req_new()
55 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new()
57 req->master_bio = bio_src; in drbd_req_new()
61 req->i.sector = bio_src->bi_iter.bi_sector; in drbd_req_new()
62 req->i.size = bio_src->bi_iter.bi_size; in drbd_req_new()
/Linux-v5.4/include/linux/
Dbio.h781 static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src, in bio_integrity_clone() argument