From: Kent Overstreet Date: Sat, 23 Sep 2023 22:41:51 +0000 (-0400) Subject: bcachefs: Ignore unknown mount options X-Git-Tag: v6.7-rc1~201^2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03ef80b469d5d83530ce1ce15be78a40e5300f9b;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Ignore unknown mount options This makes mount option handling consistent with other filesystems - options may be handled at different layers, so an option we don't know about might not be intended for us. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c index 960bb247f3a0a..739a2ef80945b 100644 --- a/fs/bcachefs/opts.c +++ b/fs/bcachefs/opts.c @@ -471,8 +471,9 @@ int bch2_parse_mount_opts(struct bch_fs *c, struct bch_opts *opts, val = "0"; } + /* Unknown options are ignored: */ if (id < 0) - goto bad_opt; + continue; if (!(bch2_opt_table[id].flags & OPT_MOUNT)) goto bad_opt;