xref: /linux/fs/bcachefs/recovery_passes.h (revision 9b61b2069681b60d0d0bedbd0fe3c70123dddb19)
1 #ifndef _BCACHEFS_RECOVERY_PASSES_H
2 #define _BCACHEFS_RECOVERY_PASSES_H
3 
4 extern const char * const bch2_recovery_passes[];
5 
6 u64 bch2_recovery_passes_to_stable(u64 v);
7 u64 bch2_recovery_passes_from_stable(u64 v);
8 
9 u64 bch2_fsck_recovery_passes(void);
10 
11 int bch2_run_explicit_recovery_pass(struct bch_fs *, enum bch_recovery_pass);
12 int bch2_run_explicit_recovery_pass_persistent(struct bch_fs *, enum bch_recovery_pass);
13 
14 int bch2_run_online_recovery_passes(struct bch_fs *);
15 int bch2_run_recovery_passes(struct bch_fs *);
16 
17 #endif /* _BCACHEFS_RECOVERY_PASSES_H */
18