bcachefs: Mark more errors autofix
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 7 Dec 2024 00:49:46 +0000 (19:49 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:22 +0000 (01:36 -0500)
tested repairing from a bug uncovered by the merge_torture_flakey test

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-errors_format.h

index 3bbda181f3147927c70e1c609cc52b8afaec604d..0bc4cec2926cc3b984c55e12f8bd02fe12137e14 100644 (file)
@@ -58,7 +58,7 @@ enum bch_fsck_flags {
        x(bset_empty,                                            45,    0)              \
        x(bset_bad_seq,                                          46,    0)              \
        x(bset_blacklisted_journal_seq,                          47,    0)              \
-       x(first_bset_blacklisted_journal_seq,                    48,    0)              \
+       x(first_bset_blacklisted_journal_seq,                    48,    FSCK_AUTOFIX)   \
        x(btree_node_bad_btree,                                  49,    0)              \
        x(btree_node_bad_level,                                  50,    0)              \
        x(btree_node_bad_min_key,                                51,    0)              \
@@ -168,7 +168,7 @@ enum bch_fsck_flags {
        x(ptr_to_incorrect_stripe,                              151,    0)              \
        x(ptr_gen_newer_than_bucket_gen,                        152,    0)              \
        x(ptr_too_stale,                                        153,    0)              \
-       x(stale_dirty_ptr,                                      154,    0)              \
+       x(stale_dirty_ptr,                                      154,    FSCK_AUTOFIX)   \
        x(ptr_bucket_data_type_mismatch,                        155,    0)              \
        x(ptr_cached_and_erasure_coded,                         156,    0)              \
        x(ptr_crc_uncompressed_size_too_small,                  157,    0)              \