bcachefs: Fix degraded mode fsck
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Mar 2024 18:54:09 +0000 (14:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Mar 2024 19:18:45 +0000 (15:18 -0400)
commitb3eba6a4a7e3e148abfde7a30daa855839fcc043
treefb7cbe0c8b67df772733e9c263701c527406763a
parentba89083e9f5d9d26f64565ec3ecb823b5bcad055
bcachefs: Fix degraded mode fsck

We don't know where the superblock and journal lives on offline devices;
that means if a device is offline fsck can't check those buckets.

Previously, fsck would incorrectly clear bucket data types for those
buckets on offline devices; now we just use the previous state.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c