diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-30 16:04:21 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-30 16:04:21 -0500 |
commit | 378ae738d5ea505c1751f23b4c56e03bb2422f33 (patch) | |
tree | f6661f7afe2e70703a224b29fcc9f5f2d56ab1fc /libbcachefs/recovery.c | |
parent | 44bf7868e5c2c4a52aef67e55aab1e904147dad4 (diff) |
Update bcachefs sources to 5264e9f4d0c0 bcachefs: fix setting version_upgrade_complete
Diffstat (limited to 'libbcachefs/recovery.c')
-rw-r--r-- | libbcachefs/recovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/recovery.c b/libbcachefs/recovery.c index ec206139..5933b02e 100644 --- a/libbcachefs/recovery.c +++ b/libbcachefs/recovery.c @@ -925,8 +925,8 @@ use_clean: } mutex_lock(&c->sb_lock); - if (BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb) != c->sb.version) { - SET_BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb, c->sb.version); + if (BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb) != le16_to_cpu(c->disk_sb.sb->version)) { + SET_BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb, le16_to_cpu(c->disk_sb.sb->version)); write_sb = true; } |