Lines Matching refs:mirror
194 int mirror = repair_bbio->mirror_num;
207 mirror = next_repair_mirror(fbio, mirror);
208 if (mirror == fbio->bbio->mirror_num) {
209 btrfs_debug(fs_info, "no mirror left");
214 btrfs_submit_bio(repair_bbio, mirror);
219 mirror = prev_repair_mirror(fbio, mirror);
223 page_folio(bv->bv_page), bv->bv_offset, mirror);
224 } while (mirror != fbio->bbio->mirror_num);
232 * Try to kick off a repair read to the next available mirror for a bad sector.
235 * but also tries to write the good data back to the bad mirror(s) when a
250 int mirror;
281 mirror = next_repair_mirror(fbio, failed_bbio->mirror_num);
282 btrfs_debug(fs_info, "submitting repair read to mirror %d", mirror);
283 btrfs_submit_bio(repair_bbio, mirror);
488 /* Reuse the bio embedded into the btrfs_bio for the last mirror */
509 /* Single mirror read/write fast path. */