Home
last modified time | relevance | path

Searched refs:cur_mirror (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/fs/btrfs/
Dextent_io.c653 static int next_mirror(const struct io_failure_record *failrec, int cur_mirror) in next_mirror() argument
655 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() argument
662 if (cur_mirror == 1) in prev_mirror()
664 return cur_mirror - 1; in prev_mirror()