Lines Matching refs:orig_bio
370 struct bio *orig_bio, struct bio *clone) in dm_zone_map_bio_begin() argument
373 unsigned int zno = bio_zone_no(orig_bio); in dm_zone_map_bio_begin()
388 switch (bio_op(orig_bio)) { in dm_zone_map_bio_begin()
406 (orig_bio->bi_opf & (~REQ_OP_MASK)); in dm_zone_map_bio_begin()
408 orig_bio->bi_iter.bi_sector + zwp_offset; in dm_zone_map_bio_begin()
429 struct bio *orig_bio, in dm_zone_map_bio_end() argument
432 unsigned int zno = bio_zone_no(orig_bio); in dm_zone_map_bio_end()
440 switch (bio_op(orig_bio)) { in dm_zone_map_bio_end()
458 if (nr_sectors != bio_sectors(orig_bio)) { in dm_zone_map_bio_end()
494 static bool dm_need_zone_wp_tracking(struct bio *orig_bio) in dm_need_zone_wp_tracking() argument
502 if (op_is_flush(orig_bio->bi_opf) && !bio_sectors(orig_bio)) in dm_need_zone_wp_tracking()
504 switch (bio_op(orig_bio)) { in dm_need_zone_wp_tracking()
511 return bio_zone_is_seq(orig_bio); in dm_need_zone_wp_tracking()
526 struct bio *orig_bio = io->orig_bio; in dm_zone_map_bio() local
536 if (!dm_need_zone_wp_tracking(orig_bio)) in dm_zone_map_bio()
540 zno = bio_zone_no(orig_bio); in dm_zone_map_bio()
547 if (!dm_zone_map_bio_begin(md, orig_bio, clone)) { in dm_zone_map_bio()
567 sts = dm_zone_map_bio_end(md, orig_bio, *tio->len_ptr); in dm_zone_map_bio()
575 sts = dm_zone_map_bio_end(md, orig_bio, *tio->len_ptr); in dm_zone_map_bio()
603 struct bio *orig_bio = io->orig_bio; in dm_zone_endio() local
620 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
634 zno = bio_zone_no(orig_bio); in dm_zone_endio()
645 } else if (bio_op(orig_bio) == REQ_OP_ZONE_APPEND) { in dm_zone_endio()
651 if (WARN_ON_ONCE(zwp_offset < bio_sectors(orig_bio))) in dm_zone_endio()
655 orig_bio->bi_iter.bi_sector += in dm_zone_endio()
656 zwp_offset - bio_sectors(orig_bio); in dm_zone_endio()