Lines Matching refs:failrec
8100 struct io_failure_record *failrec, in btrfs_check_dio_repairable() argument
8106 num_copies = btrfs_num_copies(fs_info, failrec->logical, failrec->len); in btrfs_check_dio_repairable()
8115 num_copies, failrec->this_mirror, failed_mirror); in btrfs_check_dio_repairable()
8119 failrec->failed_mirror = failed_mirror; in btrfs_check_dio_repairable()
8120 failrec->this_mirror++; in btrfs_check_dio_repairable()
8121 if (failrec->this_mirror == failed_mirror) in btrfs_check_dio_repairable()
8122 failrec->this_mirror++; in btrfs_check_dio_repairable()
8124 if (failrec->this_mirror > num_copies) { in btrfs_check_dio_repairable()
8127 num_copies, failrec->this_mirror, failed_mirror); in btrfs_check_dio_repairable()
8139 struct io_failure_record *failrec; in dio_read_error() local
8152 ret = btrfs_get_io_failure_record(inode, start, end, &failrec); in dio_read_error()
8156 ret = btrfs_check_dio_repairable(inode, failed_bio, failrec, in dio_read_error()
8159 free_io_failure(failure_tree, io_tree, failrec); in dio_read_error()
8171 bio = btrfs_create_repair_bio(inode, failed_bio, failrec, page, in dio_read_error()
8177 read_mode, failrec->this_mirror, failrec->in_validation); in dio_read_error()
8179 status = submit_dio_repair_bio(inode, bio, failrec->this_mirror); in dio_read_error()
8181 free_io_failure(failure_tree, io_tree, failrec); in dio_read_error()