Lines Matching refs:failed
50 struct bch_io_failures *failed) in bch2_io_failures_to_text() argument
56 for (struct bch_dev_io_failures *f = failed->devs; in bch2_io_failures_to_text()
57 f < failed->devs + failed->nr; in bch2_io_failures_to_text()
103 void bch2_mark_io_failure(struct bch_io_failures *failed, in bch2_mark_io_failure() argument
107 struct bch_dev_io_failures *f = bch2_dev_io_failures(failed, p->ptr.dev); in bch2_mark_io_failure()
110 BUG_ON(failed->nr >= ARRAY_SIZE(failed->devs)); in bch2_mark_io_failure()
112 f = &failed->devs[failed->nr++]; in bch2_mark_io_failure()
125 void bch2_mark_btree_validate_failure(struct bch_io_failures *failed, in bch2_mark_btree_validate_failure() argument
128 struct bch_dev_io_failures *f = bch2_dev_io_failures(failed, dev); in bch2_mark_btree_validate_failure()
131 BUG_ON(failed->nr >= ARRAY_SIZE(failed->devs)); in bch2_mark_btree_validate_failure()
133 f = &failed->devs[failed->nr++]; in bch2_mark_btree_validate_failure()
188 struct bch_io_failures *failed, in bch2_bkey_pick_read_device() argument
234 unlikely(failed) ? bch2_dev_io_failures(failed, p.ptr.dev) : NULL; in bch2_bkey_pick_read_device()