To be consistent with other options. It will still be rejected if its final value is inconsistent with mount source. Signed-off-by: Hu Weiwen <huww98@xxxxxxxxxxx> --- fs/ceph/super.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/ceph/super.c b/fs/ceph/super.c index e66867efd811..96aba62fdcba 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -423,12 +423,9 @@ static int ceph_parse_mount_param(struct fs_context *fc, param->string = NULL; break; case Opt_mds_namespace: - if (!fsopt->mds_namespace) { - fsopt->mds_namespace = param->string; - param->string = NULL; - } else if (strcmp(fsopt->mds_namespace, param->string)) { - return invalfc(fc, "Mismatching mds_namespace"); - } + kfree(fsopt->mds_namespace); + fsopt->mds_namespace = param->string; + param->string = NULL; break; case Opt_recover_session: mode = result.uint_32; -- 2.25.1