xref: /linux/fs/bcachefs/sb-errors.h (revision 8e1bb4a41aa78d6105e59186af3dcd545fc66e70)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_SB_ERRORS_H
3 #define _BCACHEFS_SB_ERRORS_H
4 
5 #include "sb-errors_types.h"
6 
7 extern const char * const bch2_sb_error_strs[];
8 
9 extern const struct bch_sb_field_ops bch_sb_field_ops_errors;
10 
11 void bch2_sb_error_count(struct bch_fs *, enum bch_sb_error_id);
12 
13 void bch2_sb_errors_from_cpu(struct bch_fs *);
14 
15 void bch2_fs_sb_errors_exit(struct bch_fs *);
16 void bch2_fs_sb_errors_init_early(struct bch_fs *);
17 int bch2_fs_sb_errors_init(struct bch_fs *);
18 
19 #endif /* _BCACHEFS_SB_ERRORS_H */
20