bcachefs: Run fsck if BCH_FEATURE_alloc_v2 isn't set
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 3 Feb 2021 20:31:17 +0000 (15:31 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:53 +0000 (17:08 -0400)
commit5d428c7c6445fc483f77eef82d17a744eeed73be
treed36ea93c1e9d6d96f41127dc9e9564e116a69339
parent4b8f89afd44592d50f7309750e7835fc777dfb08
bcachefs: Run fsck if BCH_FEATURE_alloc_v2 isn't set

We're using BCH_FEATURE_alloc_v2 to also gate journalling updates to dev
usage - we don't have the code for reconstructing this from buckets
anymore, so we need to run fsck if it's not set.

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