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