aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/bcachefs/sb-errors_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-09-26 15:30:17 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-27 21:46:35 -0400
commit8d65b15f8d93638cfa9dae20a4274d5059c3b9d2 (patch)
tree19cee2c6c4917201a9bb96f41b7caf1553a6199d /fs/bcachefs/sb-errors_format.h
parentbcachefs: Fix fsck warnings from bkey validation (diff)
downloadwireguard-linux-8d65b15f8d93638cfa9dae20a4274d5059c3b9d2.tar.xz
wireguard-linux-8d65b15f8d93638cfa9dae20a4274d5059c3b9d2.zip
bcachefs: Fix BCH_SB_ERRS() so we can reorder
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>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/sb-errors_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-errors_format.h b/fs/bcachefs/sb-errors_format.h
index 4e4e132d6d23..49d8609c4a08 100644
--- a/fs/bcachefs/sb-errors_format.h
+++ b/fs/bcachefs/sb-errors_format.h
@@ -292,12 +292,12 @@ enum bch_fsck_flags {
x(accounting_key_replicas_nr_devs_0, 278, FSCK_AUTOFIX) \
x(accounting_key_replicas_nr_required_bad, 279, FSCK_AUTOFIX) \
x(accounting_key_replicas_devs_unsorted, 280, FSCK_AUTOFIX) \
+ x(MAX, 281, 0)
enum bch_sb_error_id {
#define x(t, n, ...) BCH_FSCK_ERR_##t = n,
BCH_SB_ERRS()
#undef x
- BCH_SB_ERR_MAX
};
struct bch_sb_field_errors {