Skip to content
Commit 96de8f85 authored by Bharadwaj Raju's avatar Bharadwaj Raju Committed by Kent Overstreet
Browse files

bcachefs: mark invalid_btree_id autofix



Checking for invalid IDs was introduced in 9e7cfb35 ("bcachefs: Check for invalid btree IDs")
to prevent an invalid shift later, but since 14152654 ("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: default avatar <syzbot+029d1989099aa5ae3e89@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=029d1989099aa5ae3e89


Fixes: 14152654 ("bcachefs: Bad btree roots are now autofix")

Signed-off-by: default avatarBharadwaj Raju <bharadwaj.raju777@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ef6fac0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment