Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
7extern const char * const bch2_sb_error_strs[];
8
9void bch2_sb_error_id_to_text(struct printbuf *, enum bch_sb_error_id);
10void bch2_fs_errors_to_text(struct printbuf *, struct bch_fs *);
11
12extern const struct bch_sb_field_ops bch_sb_field_ops_errors;
13
14void bch2_sb_error_count(struct bch_fs *, enum bch_sb_error_id);
15
16void bch2_sb_errors_from_cpu(struct bch_fs *);
17
18void bch2_fs_sb_errors_exit(struct bch_fs *);
19void bch2_fs_sb_errors_init_early(struct bch_fs *);
20int bch2_fs_sb_errors_init(struct bch_fs *);
21
22#endif /* _BCACHEFS_SB_ERRORS_H */