Lines Matching defs:read_errors
178 * Used by fix_read_error() to decay the per rdev read_errors.
186 unsigned int read_errors = atomic_read(&rdev->read_errors);
202 * if hours_since_last is > the number of bits in read_errors
204 * overflowing the shift of read_errors by hours_since_last.
206 if (hours_since_last >= 8 * sizeof(read_errors))
207 atomic_set(&rdev->read_errors, 0);
209 atomic_set(&rdev->read_errors, read_errors >> hours_since_last);
215 int read_errors;
218 read_errors = atomic_inc_return(&rdev->read_errors);
219 if (read_errors > max_read_errors) {
221 mdname(mddev), rdev->bdev, read_errors, max_read_errors);