mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
8d65b15f8d
BCH_SB_ERRS() has a field for the actual enum val so that we can reorder to reorganize, but the way BCH_SB_ERR_MAX was defined didn't allow for this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
22 lines
608 B
C
22 lines
608 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_SB_ERRORS_H
|
|
#define _BCACHEFS_SB_ERRORS_H
|
|
|
|
#include "sb-errors_types.h"
|
|
|
|
extern const char * const bch2_sb_error_strs[];
|
|
|
|
void bch2_sb_error_id_to_text(struct printbuf *, enum bch_sb_error_id);
|
|
|
|
extern const struct bch_sb_field_ops bch_sb_field_ops_errors;
|
|
|
|
void bch2_sb_error_count(struct bch_fs *, enum bch_sb_error_id);
|
|
|
|
void bch2_sb_errors_from_cpu(struct bch_fs *);
|
|
|
|
void bch2_fs_sb_errors_exit(struct bch_fs *);
|
|
void bch2_fs_sb_errors_init_early(struct bch_fs *);
|
|
int bch2_fs_sb_errors_init(struct bch_fs *);
|
|
|
|
#endif /* _BCACHEFS_SB_ERRORS_H */
|