Searched refs:cur_mirror (Results 1 – 1 of 1) sorted by relevance
166 static int next_repair_mirror(struct btrfs_failed_bio *fbio, int cur_mirror) in next_repair_mirror() argument168 if (cur_mirror == fbio->num_copies) in next_repair_mirror()169 return cur_mirror + 1 - fbio->num_copies; in next_repair_mirror()170 return cur_mirror + 1; in next_repair_mirror()173 static int prev_repair_mirror(struct btrfs_failed_bio *fbio, int cur_mirror) in prev_repair_mirror() argument175 if (cur_mirror == 1) in prev_repair_mirror()177 return cur_mirror - 1; in prev_repair_mirror()