Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1952046ybf; Sun, 1 Mar 2020 22:27:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzBwiaRfiPucwMynLnmBHIDXHi0FEBwZd48oI/PFRSa4A8JrUcewG2p5b4XyjGE0dBdR6wI X-Received: by 2002:a9d:66c1:: with SMTP id t1mr10930798otm.73.1583130447502; Sun, 01 Mar 2020 22:27:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583130447; cv=none; d=google.com; s=arc-20160816; b=TKsjNDuz9d/2Pe4GiQ60Ob/QGpugUb0BzV4B5KAXpuJJNCvrWvvU4k1csNxIAy7mOp CDbvDgxJaErfnGlQ4KTif4SrQ0CWhnd88SHt5c0wvFAg84Y/OOtV9x75mA0Ng+Y1RF9d DSQ7vPB5Dg5Ben2WCCMXmUJuBZ6Nc+sMe5CY9pS0DxAcLUwTcfqAnyZb+QF42ovITULK bCTFw/mnXayZ6JPjE0P9LlkLDKeHhSAg0Wbi6ebe8sR5TZWC46XyGjVLjGqcYiiKNMX3 5AxkKvo1TAF1X7nhiZ9sjnDbxYsGhFtv4UqF684nbPkhRKqQZkZ9N7OlAe0t5Q/5qBog Lx2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=A7hoCWZILD9/XnFYmjNAsppFTlAIG/m51nOnZFyHrcE=; b=BLTsSzyzAWLSiipNOv1waEDegbzy9JfB0cZ992a30JORpKipWuvcFVfFAw1G9RaLNt 5D/1X8NhhJr4vELd9Zm8TJGzuHu1DKbDG3ypJ0k8RE2RJ2pVw+BftQwP9b36aGTRh8Iz ALzZfOaaCUKfcPxjdsgo/zqaBPGrLj1l3xHDrM2FtIFtbho7Qvl5NlvkmbioABUWxdSp 34Icr5om0mLIIvMOnRASojvRxQs6mA4IIglBMBKkJ830HfKc5KXiE/AlN2MGajGflEZv 7LxrmwcyAd3fC3Q4z4n9f2okqaYO2eEiQO1YOFhMQfM33NZZvhv23zsNKTx1MkX4X30w 7i1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="XDaS/DP9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si1779959otk.295.2020.03.01.22.27.15; Sun, 01 Mar 2020 22:27:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="XDaS/DP9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727249AbgCBG0u (ORCPT + 99 others); Mon, 2 Mar 2020 01:26:50 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:22912 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727096AbgCBG0d (ORCPT ); Mon, 2 Mar 2020 01:26:33 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200302062631epoutp02154e254f67b9f89a5a45b4f3d2052ab1~4aLQd-Eb50078800788epoutp02F for ; Mon, 2 Mar 2020 06:26:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200302062631epoutp02154e254f67b9f89a5a45b4f3d2052ab1~4aLQd-Eb50078800788epoutp02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1583130391; bh=A7hoCWZILD9/XnFYmjNAsppFTlAIG/m51nOnZFyHrcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XDaS/DP9inY7PhMguSKCACPWnZ5CEy4HJlpCr/FCtHbnENfNKz9pi1oaNr/jcCE+O 99x4AmDDSf+hbLtKrgO9pSVB1KpC8kCiwTgPZHM7sfG+fiwNWpAQ7HGIVcH4sLF3nr D5ao6S1Fgk2v5qIrsD+IL8j8TRy9eZmc9mTEMXDQ= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200302062631epcas1p40efe12f9a5e0af679353164e0f97df59~4aLQDOQyz2317423174epcas1p4k; Mon, 2 Mar 2020 06:26:31 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.160]) by epsnrtp2.localdomain (Postfix) with ESMTP id 48W9CB1BDhzMqYkq; Mon, 2 Mar 2020 06:26:30 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 65.08.52419.617AC5E5; Mon, 2 Mar 2020 15:26:30 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20200302062629epcas1p46967161019cd142c17a9ee7d33ae9265~4aLOnu5cr2317423174epcas1p4b; Mon, 2 Mar 2020 06:26:29 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200302062629epsmtrp127e3c15a0661caef7838df2478a50fee~4aLOm_F4o1431214312epsmtrp1m; Mon, 2 Mar 2020 06:26:29 +0000 (GMT) X-AuditID: b6c32a37-5b7ff7000001ccc3-21-5e5ca7164cd5 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 19.49.10238.517AC5E5; Mon, 2 Mar 2020 15:26:29 +0900 (KST) Received: from localhost.localdomain (unknown [10.88.103.87]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200302062629epsmtip21e9bcc1b9908f5912f7e9fd707162b28~4aLOdIqq-1396013960epsmtip2d; Mon, 2 Mar 2020 06:26:29 +0000 (GMT) From: Namjae Jeon To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu, hch@lst.de, sj1557.seo@samsung.com, pali.rohar@gmail.com, arnd@arndb.de, linkinjeon@gmail.com Subject: [PATCH v14 14/14] exfat: update file system parameter handling Date: Mon, 2 Mar 2020 15:21:45 +0900 Message-Id: <20200302062145.1719-15-namjae.jeon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200302062145.1719-1-namjae.jeon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnk+LIzCtJLcpLzFFi42LZdlhTV1dseUycQccnZou/k46xWzQvXs9m sXL1USaL63dvMVvs2XuSxeLyrjlsFhNP/2ay2PLvCKvFpfcfWCzO/z3O6sDl8fvXJEaPnbPu snvsn7uG3WP3zQY2j74tqxg9Pm+S8zi0/Q2bx6Ynb5kCOKJybDJSE1NSixRS85LzUzLz0m2V vIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOAjlRSKEvMKQUKBSQWFyvp29kU5ZeWpCpk 5BeX2CqlFqTkFBgaFOgVJ+YWl+al6yXn51oZGhgYmQJVJuRkHFxynKXgskjFldaj7A2MPYJd jJwcEgImEhObVjJ2MXJxCAnsYJSY1PWQBcL5xCix+Ms3VgjnG6PE3dv72GBa1r7sZ4NI7GWU 2LlxBhtcy6Nvd5i7GDk42AS0Jf5sEQVpEBGQljjTf4kJpIZZ4CajxMHFm5lBE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Tc4tL89L1kvNzNzGCA1ZLcwfj5SXxhxgFOBiVeHh3Po+OE2JNLCuu zD3EKMHBrCTC68sJFOJNSaysSi3Kjy8qzUktPsQozcGiJM77NO9YpJBAemJJanZqakFqEUyW iYNTqoFRXK/huU9W6Ny44lgHx4Q53Cbip9KfTrz3UKwgwHt5w17zVRwlKTP/aL7gmeu11jr9 dfYB1qfz+Wb2bn2csUfL9ETDJZ7CJawxUws23VAMnX9vTfyl0+f5vlxfduCpoUHSVf8nK5tf Ohqyi4tdX3Fgm39eZqr/9ast2sYvhY3knYLqd29vZ/uoxFKckWioxVxUnAgA/EaA4VQCAAA= X-CMS-MailID: 20200302062629epcas1p46967161019cd142c17a9ee7d33ae9265 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200302062629epcas1p46967161019cd142c17a9ee7d33ae9265 References: <20200302062145.1719-1-namjae.jeon@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Valdis Kletnieks Al Viro recently reworked the way file system parameters are handled Update super.c to work with it in linux-next 20200203. Signed-off-by: Valdis Kletnieks Reviewed-by: Christoph Hellwig Acked-by: Namjae Jeon --- fs/exfat/super.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/fs/exfat/super.c b/fs/exfat/super.c index f06e0b53e393..16ed202ef527 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -214,7 +214,14 @@ enum { Opt_time_offset, }; -static const struct fs_parameter_spec exfat_param_specs[] = { +static const struct constant_table exfat_param_enums[] = { + { "continue", EXFAT_ERRORS_CONT }, + { "panic", EXFAT_ERRORS_PANIC }, + { "remount-ro", EXFAT_ERRORS_RO }, + {} +}; + +static const struct fs_parameter_spec exfat_parameters[] = { fsparam_u32("uid", Opt_uid), fsparam_u32("gid", Opt_gid), fsparam_u32oct("umask", Opt_umask), @@ -222,25 +229,12 @@ static const struct fs_parameter_spec exfat_param_specs[] = { fsparam_u32oct("fmask", Opt_fmask), fsparam_u32oct("allow_utime", Opt_allow_utime), fsparam_string("iocharset", Opt_charset), - fsparam_enum("errors", Opt_errors), + fsparam_enum("errors", Opt_errors, exfat_param_enums), fsparam_flag("discard", Opt_discard), fsparam_s32("time_offset", Opt_time_offset), {} }; -static const struct fs_parameter_enum exfat_param_enums[] = { - { Opt_errors, "continue", EXFAT_ERRORS_CONT }, - { Opt_errors, "panic", EXFAT_ERRORS_PANIC }, - { Opt_errors, "remount-ro", EXFAT_ERRORS_RO }, - {} -}; - -static const struct fs_parameter_description exfat_parameters = { - .name = "exfat", - .specs = exfat_param_specs, - .enums = exfat_param_enums, -}; - static int exfat_parse_param(struct fs_context *fc, struct fs_parameter *param) { struct exfat_sb_info *sbi = fc->s_fs_info; @@ -248,7 +242,7 @@ static int exfat_parse_param(struct fs_context *fc, struct fs_parameter *param) struct fs_parse_result result; int opt; - opt = fs_parse(fc, &exfat_parameters, param, &result); + opt = fs_parse(fc, exfat_parameters, param, &result); if (opt < 0) return opt; @@ -665,7 +659,7 @@ static struct file_system_type exfat_fs_type = { .owner = THIS_MODULE, .name = "exfat", .init_fs_context = exfat_init_fs_context, - .parameters = &exfat_parameters, + .parameters = exfat_parameters, .kill_sb = kill_block_super, .fs_flags = FS_REQUIRES_DEV, }; -- 2.17.1