]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Fix "now allowing incompatible features" message
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 13 Jun 2025 21:47:07 +0000 (17:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 02:11:56 +0000 (22:11 -0400)
Check against version_incompat_allowed, not version_incompat.

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

index 6aef8b1018209c7e618e44d62a0a9e5cf1c302b1..820249e9c5ea27ef92ca4bf23309b66b2da827a9 100644 (file)
@@ -692,7 +692,7 @@ static bool check_version_upgrade(struct bch_fs *c)
                ret = true;
        }
 
-       if (new_version > c->sb.version_incompat &&
+       if (new_version > c->sb.version_incompat_allowed &&
            c->opts.version_upgrade == BCH_VERSION_UPGRADE_incompatible) {
                struct printbuf buf = PRINTBUF;