diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-29 15:15:14 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:07 -0500 |
commit | 8b16413cda7c46d47f8071165b3071f8a9369199 (patch) | |
tree | af7a5927c0676fc33c1e5c14f34ed5f8a8717d6d /fs/bcachefs/sb-errors.h | |
parent | 808c680f2a256188951805f05c907d40919db37a (diff) | |
download | linux-stable-8b16413cda7c46d47f8071165b3071f8a9369199.tar.gz linux-stable-8b16413cda7c46d47f8071165b3071f8a9369199.tar.bz2 linux-stable-8b16413cda7c46d47f8071165b3071f8a9369199.zip |
bcachefs: bch_sb.recovery_passes_required
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>
Diffstat (limited to 'fs/bcachefs/sb-errors.h')
-rw-r--r-- | fs/bcachefs/sb-errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/sb-errors.h b/fs/bcachefs/sb-errors.h index 27e5dc7884bb..8889001e7db4 100644 --- a/fs/bcachefs/sb-errors.h +++ b/fs/bcachefs/sb-errors.h @@ -4,6 +4,8 @@ #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); |