1 #ifndef _BCACHEFS_RECOVERY_PASSES_H 2 #define _BCACHEFS_RECOVERY_PASSES_H 3 4 extern const char * const bch2_recovery_passes[]; 5 6 extern const struct bch_sb_field_ops bch_sb_field_ops_recovery_passes; 7 8 u64 bch2_recovery_passes_to_stable(u64 v); 9 u64 bch2_recovery_passes_from_stable(u64 v); 10 11 u64 bch2_fsck_recovery_passes(void); 12 13 enum bch_run_recovery_pass_flags { 14 RUN_RECOVERY_PASS_nopersistent = BIT(0), 15 RUN_RECOVERY_PASS_ratelimit = BIT(1), 16 }; 17 18 int bch2_run_print_explicit_recovery_pass(struct bch_fs *, enum bch_recovery_pass); 19 20 int __bch2_run_explicit_recovery_pass(struct bch_fs *, struct printbuf *, 21 enum bch_recovery_pass, 22 enum bch_run_recovery_pass_flags); 23 int bch2_run_explicit_recovery_pass(struct bch_fs *, struct printbuf *, 24 enum bch_recovery_pass, 25 enum bch_run_recovery_pass_flags); 26 27 int bch2_run_online_recovery_passes(struct bch_fs *, u64); 28 int bch2_run_recovery_passes(struct bch_fs *, enum bch_recovery_pass); 29 30 void bch2_recovery_pass_status_to_text(struct printbuf *, struct bch_fs *); 31 32 void bch2_fs_recovery_passes_init(struct bch_fs *); 33 34 #endif /* _BCACHEFS_RECOVERY_PASSES_H */ 35