Commit e0a2b00a authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix check_version_upgrade()

We were failing to upgrade to the latest compatible version - whoops.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 83b3d959
......@@ -507,7 +507,7 @@ static struct recovery_pass_fn recovery_pass_fns[] = {
static void check_version_upgrade(struct bch_fs *c)
{
unsigned latest_compatible = bch2_version_compatible(c->sb.version);
unsigned latest_compatible = bch2_latest_compatible_version(c->sb.version);
unsigned latest_version = bcachefs_metadata_version_current;
unsigned old_version = c->sb.version_upgrade_complete ?: c->sb.version;
unsigned new_version = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment