]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/fs.c
Update bcachefs sources to 5264e9f4d0c0 bcachefs: fix setting version_upgrade_complete
[bcachefs-tools-debian] / libbcachefs / fs.c
index 01960b36cd4d894bfe6850febdf1bd9f7db38c49..34cb22a9c05d6d8346b217b1836171f06c52d04a 100644 (file)
@@ -1602,12 +1602,12 @@ static int bch2_remount(struct super_block *sb, int *flags, char *data)
        struct bch_opts opts = bch2_opts_empty();
        int ret;
 
-       opt_set(opts, read_only, (*flags & SB_RDONLY) != 0);
-
        ret = bch2_parse_mount_opts(c, &opts, data);
        if (ret)
                goto err;
 
+       opt_set(opts, read_only, (*flags & SB_RDONLY) != 0);
+
        if (opts.read_only != c->opts.read_only) {
                down_write(&c->state_lock);