From patchwork Wed Jun 19 12:30:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 11004037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3CDE2924 for ; Wed, 19 Jun 2019 12:30:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C7A427C0B for ; Wed, 19 Jun 2019 12:30:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20BEE28949; Wed, 19 Jun 2019 12:30:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD0E827C0B for ; Wed, 19 Jun 2019 12:30:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731719AbfFSMaz (ORCPT ); Wed, 19 Jun 2019 08:30:55 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50842 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731904AbfFSMar (ORCPT ); Wed, 19 Jun 2019 08:30:47 -0400 Received: by mail-wm1-f68.google.com with SMTP id c66so1588714wmf.0 for ; Wed, 19 Jun 2019 05:30:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XNbb6ySXfk0LsxFqiydMR/t6l2T9CSD+Rib4fd27MSM=; b=eqOyg7g/0mJgsqlNmXLBR5YOaJFlrH19/0P++tjLFSFMSOUEh/YX9NRlTUPN+TtOGl +pdFYCHUM/YtaGkvjFvsTvQZpM9T9FnxiYbwchSLopKYU5A/B+MAUyLYTI10kgQXPvH3 i4Lk65CGWQH4+vD0CXuNHNfXtGqfhH3ZitAJbTYL0Eiqm3ITnfidLYg/zuOzZmiUQh56 2HKy7SjZtQ3XAurwmtpTQTr+o3SZ8uKA36Ih1tMhYwdeYsFCCqALH64DWsP72N7Cg9M3 0OCPGJ4b4nKliIS8/h9GR39d+oUslKqtoaXKzeUchoC1A+EIqsjHYzCCauvjMlPq7dUb q9SA== X-Gm-Message-State: APjAAAXtlIgJY+G9zEHRNrVs3tVTpYHdQa00/1ZDDoXqMWyg/hUUBPrH 8KPizvvXOh1i17HWapJ8BDpIyQ== X-Google-Smtp-Source: APXvYqzDtNt23rFHKuVaUEO5oLhVSqmtdo5dNeWIEYEQF22eYOjWI12j/aKbz0NzzlQAmjdhiRPz6Q== X-Received: by 2002:a1c:b757:: with SMTP id h84mr8627226wmf.127.1560947445793; Wed, 19 Jun 2019 05:30:45 -0700 (PDT) Received: from miu.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id 11sm1837513wmd.23.2019.06.19.05.30.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 05:30:45 -0700 (PDT) From: Miklos Szeredi To: David Howells Cc: Al Viro , Ian Kent , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/13] resctrl: don't ignore options Date: Wed, 19 Jun 2019 14:30:19 +0200 Message-Id: <20190619123019.30032-13-mszeredi@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190619123019.30032-1-mszeredi@redhat.com> References: <20190619123019.30032-1-mszeredi@redhat.com> MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The options "sync", "async", "dirsync", "lazytime", "nolazytime", "mand" and "nomand" make no sense for the resctrl filesystem. If these options are supplied to fsconfig(FSCONFIG_SET_FLAG), then return -EINVAL instead of silently ignoring the option. Any implementation, such as mount(8) that needs to parse this option without failing should simply ignore the return value from fsconfig(). Signed-off-by: Miklos Szeredi --- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c index 83d3c358f95e..16b110d31457 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -2053,7 +2053,7 @@ static int rdt_parse_param(struct fs_context *fc, struct fs_parameter *param) struct fs_parse_result result; int ret, opt; - ret = vfs_parse_sb_flag(fc, param); + ret = vfs_parse_ro_rw(fc, param); if (ret != -ENOPARAM) return ret;