Searched refs:cur_mirror (Results 1 – 1 of 1) sorted by relevance
145 static int next_repair_mirror(struct btrfs_failed_bio *fbio, int cur_mirror) in next_repair_mirror() argument147 if (cur_mirror == fbio->num_copies) in next_repair_mirror()148 return cur_mirror + 1 - fbio->num_copies; in next_repair_mirror()149 return cur_mirror + 1; in next_repair_mirror()152 static int prev_repair_mirror(struct btrfs_failed_bio *fbio, int cur_mirror) in prev_repair_mirror() argument154 if (cur_mirror == 1) in prev_repair_mirror()156 return cur_mirror - 1; in prev_repair_mirror()