#include "bcachefs.h"
#include "sb-errors.h"
#include "super-io.h"
const char * const bch2_sb_error_strs[] = …;
static void bch2_sb_error_id_to_text(struct printbuf *out, enum bch_sb_error_id id)
{ … }
static inline unsigned bch2_sb_field_errors_nr_entries(struct bch_sb_field_errors *e)
{ … }
static inline unsigned bch2_sb_field_errors_u64s(unsigned nr)
{ … }
static int bch2_sb_errors_validate(struct bch_sb *sb, struct bch_sb_field *f,
enum bch_validate_flags flags, struct printbuf *err)
{ … }
static void bch2_sb_errors_to_text(struct printbuf *out, struct bch_sb *sb,
struct bch_sb_field *f)
{ … }
const struct bch_sb_field_ops bch_sb_field_ops_errors = …;
void bch2_sb_error_count(struct bch_fs *c, enum bch_sb_error_id err)
{ … }
void bch2_sb_errors_from_cpu(struct bch_fs *c)
{ … }
static int bch2_sb_errors_to_cpu(struct bch_fs *c)
{ … }
void bch2_fs_sb_errors_exit(struct bch_fs *c)
{ … }
void bch2_fs_sb_errors_init_early(struct bch_fs *c)
{ … }
int bch2_fs_sb_errors_init(struct bch_fs *c)
{ … }