Searched refs:failrec (Results 1 – 1 of 1) sorted by relevance
495 struct io_failure_record *failrec) in insert_failrec() argument500 exist = rb_simple_insert(&inode->io_failure_tree, failrec->bytenr, in insert_failrec()501 &failrec->rb_node); in insert_failrec()510 struct io_failure_record *failrec = ERR_PTR(-ENOENT); in get_failrec() local515 failrec = rb_entry(node, struct io_failure_record, rb_node); in get_failrec()517 return failrec; in get_failrec()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()660 static int prev_mirror(const struct io_failure_record *failrec, int cur_mirror) in prev_mirror() argument[all …]