summaryrefslogtreecommitdiff
path: root/libbcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-30 16:04:21 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-30 16:04:21 -0500
commit378ae738d5ea505c1751f23b4c56e03bb2422f33 (patch)
treef6661f7afe2e70703a224b29fcc9f5f2d56ab1fc /libbcachefs/recovery.c
parent44bf7868e5c2c4a52aef67e55aab1e904147dad4 (diff)
Update bcachefs sources to 5264e9f4d0c0 bcachefs: fix setting version_upgrade_complete
Diffstat (limited to 'libbcachefs/recovery.c')
-rw-r--r--libbcachefs/recovery.c4
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;
}