Lines Matching refs:pass

71 static enum bch_recovery_pass_stable bch2_recovery_pass_to_stable(enum bch_recovery_pass pass)  in bch2_recovery_pass_to_stable()  argument
73 return passes_to_stable_map[pass]; in bch2_recovery_pass_to_stable()
104 enum bch_recovery_pass pass) in bch2_run_explicit_recovery_pass() argument
106 if (c->opts.recovery_passes & BIT_ULL(pass)) in bch2_run_explicit_recovery_pass()
110 bch2_recovery_passes[pass], pass, in bch2_run_explicit_recovery_pass()
113 c->opts.recovery_passes |= BIT_ULL(pass); in bch2_run_explicit_recovery_pass()
115 if (c->curr_recovery_pass >= pass) { in bch2_run_explicit_recovery_pass()
116 c->curr_recovery_pass = pass; in bch2_run_explicit_recovery_pass()
117 c->recovery_passes_complete &= (1ULL << pass) >> 1; in bch2_run_explicit_recovery_pass()
125 enum bch_recovery_pass pass) in bch2_run_explicit_recovery_pass_persistent() argument
127 enum bch_recovery_pass_stable s = bch2_recovery_pass_to_stable(pass); in bch2_run_explicit_recovery_pass_persistent()
138 return bch2_run_explicit_recovery_pass(c, pass); in bch2_run_explicit_recovery_pass_persistent()
142 enum bch_recovery_pass pass) in bch2_clear_recovery_pass_required() argument
144 enum bch_recovery_pass_stable s = bch2_recovery_pass_to_stable(pass); in bch2_clear_recovery_pass_required()
166 static bool should_run_recovery_pass(struct bch_fs *c, enum bch_recovery_pass pass) in should_run_recovery_pass() argument
168 struct recovery_pass_fn *p = recovery_pass_fns + pass; in should_run_recovery_pass()
170 if (c->opts.recovery_passes_exclude & BIT_ULL(pass)) in should_run_recovery_pass()
172 if (c->opts.recovery_passes & BIT_ULL(pass)) in should_run_recovery_pass()
183 static int bch2_run_recovery_pass(struct bch_fs *c, enum bch_recovery_pass pass) in bch2_run_recovery_pass() argument
185 struct recovery_pass_fn *p = recovery_pass_fns + pass; in bch2_run_recovery_pass()
190 bch2_recovery_passes[pass]); in bch2_run_recovery_pass()
242 unsigned pass = c->curr_recovery_pass; in bch2_run_recovery_passes() local
247 (ret && c->curr_recovery_pass < pass)) in bch2_run_recovery_passes()