aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/bcachefs/sb-errors_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-08-08 23:19:59 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-08-09 14:40:19 -0400
commit077e47372309dcbe3a150754ea9c6f15cc838d6b (patch)
tree55f6d55394b5c89824c543e67680f9d686360e98 /fs/bcachefs/sb-errors_format.h
parentbcachefs: Switch to .get_inode_acl() (diff)
downloadwireguard-linux-077e47372309dcbe3a150754ea9c6f15cc838d6b.tar.xz
wireguard-linux-077e47372309dcbe3a150754ea9c6f15cc838d6b.zip
bcachefs: bch2_accounting_invalid()
Implement bch2_accounting_invalid(); check for junk at the end, and replicas accounting entries in particular need to be checked or we'll pop asserts later. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/sb-errors_format.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-errors_format.h b/fs/bcachefs/sb-errors_format.h
index d1b2f2aa397a..d3a498617303 100644
--- a/fs/bcachefs/sb-errors_format.h
+++ b/fs/bcachefs/sb-errors_format.h
@@ -287,7 +287,11 @@ enum bch_fsck_flags {
x(accounting_replicas_not_marked, 273, 0) \
x(invalid_btree_id, 274, 0) \
x(alloc_key_io_time_bad, 275, 0) \
- x(alloc_key_fragmentation_lru_wrong, 276, FSCK_AUTOFIX)
+ x(alloc_key_fragmentation_lru_wrong, 276, FSCK_AUTOFIX) \
+ x(accounting_key_junk_at_end, 277, 0) \
+ x(accounting_key_replicas_nr_devs_0, 278, 0) \
+ x(accounting_key_replicas_nr_required_bad, 279, 0) \
+ x(accounting_key_replicas_devs_unsorted, 280, 0) \
enum bch_sb_error_id {
#define x(t, n, ...) BCH_FSCK_ERR_##t = n,