mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
8b16413cda
Add two new superblock fields. Since the main section of the superblock is now fully, we have to add a new variable length section for them - bch_sb_field_ext. - recovery_passes_requried: recovery passes that must be run on the next mount - errors_silent: errors that will be silently fixed These are to improve upgrading and dwongrading: these fields won't be cleared until after recovery successfully completes, so there won't be any issues with crashing partway through an upgrade or a downgrade. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
20 lines
535 B
C
20 lines
535 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[];
|
|
|
|
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 */
|