summaryrefslogtreecommitdiff
path: root/libbcachefs/super-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/super-io.c')
-rw-r--r--libbcachefs/super-io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs/super-io.c b/libbcachefs/super-io.c
index 1aaae140..a2b789b4 100644
--- a/libbcachefs/super-io.c
+++ b/libbcachefs/super-io.c
@@ -17,6 +17,7 @@
#include "super-io.h"
#include "super.h"
#include "vstructs.h"
+#include "counters.h"
#include <linux/backing-dev.h>
#include <linux/sort.h>
@@ -818,6 +819,8 @@ int bch2_write_super(struct bch_fs *c)
SET_BCH_SB_BIG_ENDIAN(c->disk_sb.sb, CPU_BIG_ENDIAN);
+ bch2_sb_counters_from_cpu(c);
+
for_each_online_member(ca, c, i)
bch2_sb_from_fs(c, ca);