Lines Matching refs:read_errors
2269 * Used by fix_read_error() to decay the per rdev read_errors.
2278 unsigned int read_errors = atomic_read(&rdev->read_errors);
2294 * if hours_since_last is > the number of bits in read_errors
2296 * overflowing the shift of read_errors by hours_since_last.
2298 if (hours_since_last >= 8 * sizeof(read_errors))
2299 atomic_set(&rdev->read_errors, 0);
2301 atomic_set(&rdev->read_errors, read_errors >> hours_since_last);
2355 atomic_inc(&rdev->read_errors);
2356 if (atomic_read(&rdev->read_errors) > max_read_errors) {
2362 atomic_read(&rdev->read_errors), max_read_errors);