Lines Matching refs:read_errors
2659 * Used by fix_read_error() to decay the per rdev read_errors.
2668 unsigned int read_errors = atomic_read(&rdev->read_errors);
2684 * if hours_since_last is > the number of bits in read_errors
2686 * overflowing the shift of read_errors by hours_since_last.
2688 if (hours_since_last >= 8 * sizeof(read_errors))
2689 atomic_set(&rdev->read_errors, 0);
2691 atomic_set(&rdev->read_errors, read_errors >> hours_since_last);
2745 atomic_inc(&rdev->read_errors);
2746 if (atomic_read(&rdev->read_errors) > max_read_errors) {
2749 atomic_read(&rdev->read_errors), max_read_errors);