Lines Matching full:errors
54 /* IO errors */
57 unsigned int errors; in bch_count_backing_io_errors() local
73 errors = atomic_add_return(1, &dc->io_errors); in bch_count_backing_io_errors()
74 if (errors < dc->error_limit) in bch_count_backing_io_errors()
95 unsigned int errors; in bch_count_io_errors() local
101 * successfully do so, we rescale the errors once: in bch_count_io_errors()
109 errors = atomic_read(&ca->io_errors); in bch_count_io_errors()
111 old = errors; in bch_count_io_errors()
112 new = ((uint64_t) errors * 127) / 128; in bch_count_io_errors()
113 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
115 } while (old != errors); in bch_count_io_errors()
121 unsigned int errors = atomic_add_return(1 << IO_ERROR_SHIFT, in bch_count_io_errors() local
123 errors >>= IO_ERROR_SHIFT; in bch_count_io_errors()
125 if (errors < ca->set->error_limit) in bch_count_io_errors()
131 "%s: too many IO errors %s", in bch_count_io_errors()