Searched refs:cur_mirror (Results 1 – 1 of 1) sorted by relevance
653 static int next_mirror(const struct io_failure_record *failrec, int cur_mirror) in next_mirror() argument655 if (cur_mirror == failrec->num_copies) in next_mirror()656 return cur_mirror + 1 - failrec->num_copies; in next_mirror()657 return cur_mirror + 1; in next_mirror()660 static int prev_mirror(const struct io_failure_record *failrec, int cur_mirror) in prev_mirror() argument662 if (cur_mirror == 1) in prev_mirror()664 return cur_mirror - 1; in prev_mirror()