diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-11 22:22:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:10 -0400 |
commit | e0a2b00a42e347a1be596fd9d1c071f0cd8c3f1f (patch) | |
tree | 50ab8b541f271481e3aa779c2210bd2f793ece4e /fs/bcachefs/recovery.c | |
parent | 83b3d9598a650d28071dbda0b97c7a9a6abd6e4a (diff) |
bcachefs: Fix check_version_upgrade()
We were failing to upgrade to the latest compatible version - whoops.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index bd4a99c0d21f..33a68a335be6 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -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; |