Lines Matching refs:errors
58 unsigned int errors; in bch_count_backing_io_errors() local
74 errors = atomic_add_return(1, &dc->io_errors); in bch_count_backing_io_errors()
75 if (errors < dc->error_limit) in bch_count_backing_io_errors()
96 unsigned int errors; in bch_count_io_errors() local
110 errors = atomic_read(&ca->io_errors); in bch_count_io_errors()
112 old = errors; in bch_count_io_errors()
113 new = ((uint64_t) errors * 127) / 128; in bch_count_io_errors()
114 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
116 } while (old != errors); in bch_count_io_errors()
122 unsigned int errors = atomic_add_return(1 << IO_ERROR_SHIFT, in bch_count_io_errors() local
124 errors >>= IO_ERROR_SHIFT; in bch_count_io_errors()
126 if (errors < ca->set->error_limit) in bch_count_io_errors()