Lines Matching defs:bio
128 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio)
130 return dm_rh_sector_to_region(rh, bio->bi_iter.bi_sector -
387 * @bio
389 * The bio was written on some mirror(s) but failed on other mirror(s).
390 * We can successfully endio the bio but should avoid the region being
395 void dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio)
400 region_t region = dm_rh_bio_to_region(rh, bio);
403 if (bio->bi_opf & REQ_PREFLUSH) {
408 if (bio_op(bio) == REQ_OP_DISCARD)
528 struct bio *bio;
530 for (bio = bios->head; bio; bio = bio->bi_next) {
531 if (bio->bi_opf & REQ_PREFLUSH || bio_op(bio) == REQ_OP_DISCARD)
533 rh_inc(rh, dm_rh_bio_to_region(rh, bio));
690 void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio)
695 reg = __rh_find(rh, dm_rh_bio_to_region(rh, bio));
696 bio_list_add(®->delayed_bios, bio);