]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Fix duplicate "ro,read_only" in opts at startup
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 6 Apr 2025 17:38:11 +0000 (13:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 6 Apr 2025 23:33:53 +0000 (19:33 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c

index a58edde43bee3bf62f47dd7e5b5bbf57e841a341..16ebea1214af5f96aca20f808d3f6d2545a4296d 100644 (file)
@@ -1002,12 +1002,6 @@ static void print_mount_opts(struct bch_fs *c)
        prt_str(&p, "starting version ");
        bch2_version_to_text(&p, c->sb.version);
 
-       if (c->opts.read_only) {
-               prt_str(&p, " opts=");
-               first = false;
-               prt_printf(&p, "ro");
-       }
-
        for (i = 0; i < bch2_opts_nr; i++) {
                const struct bch_option *opt = &bch2_opt_table[i];
                u64 v = bch2_opt_get_by_id(&c->opts, i);