Lines Matching full:mirror
171 int mirror = repair_bbio->mirror_num; in btrfs_end_repair_bio() local
184 mirror = next_repair_mirror(fbio, mirror); in btrfs_end_repair_bio()
185 if (mirror == fbio->bbio->mirror_num) { in btrfs_end_repair_bio()
186 btrfs_debug(fs_info, "no mirror left"); in btrfs_end_repair_bio()
191 btrfs_submit_bbio(repair_bbio, mirror); in btrfs_end_repair_bio()
196 mirror = prev_repair_mirror(fbio, mirror); in btrfs_end_repair_bio()
200 page_folio(bv->bv_page), bv->bv_offset, mirror); in btrfs_end_repair_bio()
201 } while (mirror != fbio->bbio->mirror_num); in btrfs_end_repair_bio()
209 * Try to kick off a repair read to the next available mirror for a bad sector.
212 * but also tries to write the good data back to the bad mirror(s) when a
227 int mirror; in repair_one_sector() local
258 mirror = next_repair_mirror(fbio, failed_bbio->mirror_num); in repair_one_sector()
259 btrfs_debug(fs_info, "submitting repair read to mirror %d", mirror); in repair_one_sector()
260 btrfs_submit_bbio(repair_bbio, mirror); in repair_one_sector()
465 /* Reuse the bio embedded into the btrfs_bio for the last mirror */ in btrfs_submit_mirrored_bio()
486 /* Single mirror read/write fast path. */ in btrfs_submit_bio()