Skip to content

Commit 96de8f8

Browse files
bharadwaj-rajuKent Overstreet
authored andcommitted
bcachefs: mark invalid_btree_id autofix
Checking for invalid IDs was introduced in 9e7cfb3 ("bcachefs: Check for invalid btree IDs") to prevent an invalid shift later, but since 1415265 ("bcachefs: Bad btree roots are now autofix") which made btree_root_bkey_invalid autofix, the fsck_err_on call didn't do anything. We can mark this err type (invalid_btree_id) autofix as well, so it gets handled. Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=029d1989099aa5ae3e89 Fixes: 1415265 ("bcachefs: Bad btree roots are now autofix") Signed-off-by: Bharadwaj Raju <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent ef6fac0 commit 96de8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/sb-errors_format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ enum bch_fsck_flags {
314314
x(accounting_mismatch, 272, FSCK_AUTOFIX) \
315315
x(accounting_replicas_not_marked, 273, 0) \
316316
x(accounting_to_invalid_device, 289, 0) \
317-
x(invalid_btree_id, 274, 0) \
317+
x(invalid_btree_id, 274, FSCK_AUTOFIX) \
318318
x(alloc_key_io_time_bad, 275, 0) \
319319
x(alloc_key_fragmentation_lru_wrong, 276, FSCK_AUTOFIX) \
320320
x(accounting_key_junk_at_end, 277, FSCK_AUTOFIX) \

0 commit comments

Comments
 (0)