Lines Matching defs:mirror
166 int mirror = repair_bbio->mirror_num;
173 mirror = next_repair_mirror(fbio, mirror);
174 if (mirror == fbio->bbio->mirror_num) {
175 btrfs_debug(fs_info, "no mirror left");
180 btrfs_submit_bbio(repair_bbio, mirror);
185 mirror = prev_repair_mirror(fbio, mirror);
189 bvec_phys(bv), mirror);
190 } while (mirror != fbio->bbio->mirror_num);
198 * Try to kick off a repair read to the next available mirror for a bad sector.
201 * but also tries to write the good data back to the bad mirror(s) when a
216 int mirror;
247 mirror = next_repair_mirror(fbio, failed_bbio->mirror_num);
248 btrfs_debug(fs_info, "submitting repair read to mirror %d", mirror);
249 btrfs_submit_bbio(repair_bbio, mirror);
462 /* Reuse the bio embedded into the btrfs_bio for the last mirror */
483 /* Single mirror read/write fast path. */