summaryrefslogtreecommitdiff
path: root/libbcachefs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/super.c')
-rw-r--r--libbcachefs/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/super.c b/libbcachefs/super.c
index d2c275ce..d3473897 100644
--- a/libbcachefs/super.c
+++ b/libbcachefs/super.c
@@ -889,6 +889,8 @@ int bch2_fs_start(struct bch_fs *c)
if (bch2_fs_init_fault("fs_start"))
goto err;
+ set_bit(BCH_FS_STARTED, &c->flags);
+
if (c->opts.read_only || c->opts.nochanges) {
bch2_fs_read_only(c);
} else {
@@ -900,7 +902,6 @@ int bch2_fs_start(struct bch_fs *c)
goto err;
}
- set_bit(BCH_FS_STARTED, &c->flags);
print_mount_opts(c);
ret = 0;
out: