Lines Matching refs:read_errors
1452 * Used by fix_read_error() to decay the per rdev read_errors.
1461 unsigned int read_errors = atomic_read(&rdev->read_errors);
1478 * if hours_since_last is > the number of bits in read_errors
1480 * overflowing the shift of read_errors by hours_since_last.
1482 if (hours_since_last >= 8 * sizeof(read_errors))
1483 atomic_set(&rdev->read_errors, 0);
1485 atomic_set(&rdev->read_errors, read_errors >> hours_since_last);
1520 atomic_inc(&rdev->read_errors);
1521 cur_read_error_count = atomic_read(&rdev->read_errors);