From patchwork Fri Jun 5 19:40:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 6557751 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CF952C0020 for ; Fri, 5 Jun 2015 19:40:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E587720776 for ; Fri, 5 Jun 2015 19:40:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6EC3206D4 for ; Fri, 5 Jun 2015 19:40:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbbFETkR (ORCPT ); Fri, 5 Jun 2015 15:40:17 -0400 Received: from mailrelay106.isp.belgacom.be ([195.238.20.133]:11969 "EHLO mailrelay106.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbbFETkQ (ORCPT ); Fri, 5 Jun 2015 15:40:16 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=SBTPB+aU5K4LG/z6P+2X+Qo0AxOejQ4nyx+IVoQ/YQ8= c=1 sm=2 a=JLPeITeBZu5v1kcY_swA:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DESQAr+nFV/9oltFtbgXKBHoEyrGMFAYEEmFeBN00BAQEBAQGBC4RQLyOBGjeIMQHcBiyGGYowhDQFhm2XWZdVJGFmAUEcgVQ8MYJHAQEB Received: from 218.37-180-91.adsl-dyn.isp.belgacom.be (HELO localhost.home.) ([91.180.37.218]) by relay.skynet.be with ESMTP; 05 Jun 2015 21:40:15 +0200 From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Fabian Frederick , linux-fsdevel@vger.kernel.org Subject: [PATCH 1/1 linux-next] fs/hfsplus/options.c: use standard option prefix Date: Fri, 5 Jun 2015 21:40:08 +0200 Message-Id: <1433533208-9880-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.4.2 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All filesystems use Opt_ prefix for match_table_t enums Signed-off-by: Fabian Frederick --- fs/hfsplus/options.c | 68 ++++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/fs/hfsplus/options.c b/fs/hfsplus/options.c index c90b72e..d295ae6 100644 --- a/fs/hfsplus/options.c +++ b/fs/hfsplus/options.c @@ -19,29 +19,29 @@ #include "hfsplus_fs.h" enum { - opt_creator, opt_type, - opt_umask, opt_uid, opt_gid, - opt_part, opt_session, opt_nls, - opt_nodecompose, opt_decompose, - opt_barrier, opt_nobarrier, - opt_force, opt_err + Opt_creator, Opt_type, + Opt_umask, Opt_uid, Opt_gid, + Opt_part, Opt_session, Opt_nls, + Opt_nodecompose, Opt_decompose, + Opt_barrier, Opt_nobarrier, + Opt_force, Opt_err }; static const match_table_t tokens = { - { opt_creator, "creator=%s" }, - { opt_type, "type=%s" }, - { opt_umask, "umask=%o" }, - { opt_uid, "uid=%u" }, - { opt_gid, "gid=%u" }, - { opt_part, "part=%u" }, - { opt_session, "session=%u" }, - { opt_nls, "nls=%s" }, - { opt_decompose, "decompose" }, - { opt_nodecompose, "nodecompose" }, - { opt_barrier, "barrier" }, - { opt_nobarrier, "nobarrier" }, - { opt_force, "force" }, - { opt_err, NULL } + { Opt_creator, "creator=%s" }, + { Opt_type, "type=%s" }, + { Opt_umask, "umask=%o" }, + { Opt_uid, "uid=%u" }, + { Opt_gid, "gid=%u" }, + { Opt_part, "part=%u" }, + { Opt_session, "session=%u" }, + { Opt_nls, "nls=%s" }, + { Opt_decompose, "decompose" }, + { Opt_nodecompose, "nodecompose" }, + { Opt_barrier, "barrier" }, + { Opt_nobarrier, "nobarrier" }, + { Opt_force, "force" }, + { Opt_err, NULL } }; /* Initialize an options object to reasonable defaults */ @@ -83,7 +83,7 @@ int hfsplus_parse_options_remount(char *input, int *force) token = match_token(p, tokens, args); switch (token) { - case opt_force: + case Opt_force: *force = 1; break; default: @@ -111,26 +111,26 @@ int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi) token = match_token(p, tokens, args); switch (token) { - case opt_creator: + case Opt_creator: if (match_fourchar(&args[0], &sbi->creator)) { pr_err("creator requires a 4 character value\n"); return 0; } break; - case opt_type: + case Opt_type: if (match_fourchar(&args[0], &sbi->type)) { pr_err("type requires a 4 character value\n"); return 0; } break; - case opt_umask: + case Opt_umask: if (match_octal(&args[0], &tmp)) { pr_err("umask requires a value\n"); return 0; } sbi->umask = (umode_t)tmp; break; - case opt_uid: + case Opt_uid: if (match_int(&args[0], &tmp)) { pr_err("uid requires an argument\n"); return 0; @@ -141,7 +141,7 @@ int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi) return 0; } break; - case opt_gid: + case Opt_gid: if (match_int(&args[0], &tmp)) { pr_err("gid requires an argument\n"); return 0; @@ -152,19 +152,19 @@ int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi) return 0; } break; - case opt_part: + case Opt_part: if (match_int(&args[0], &sbi->part)) { pr_err("part requires an argument\n"); return 0; } break; - case opt_session: + case Opt_session: if (match_int(&args[0], &sbi->session)) { pr_err("session requires an argument\n"); return 0; } break; - case opt_nls: + case Opt_nls: if (sbi->nls) { pr_err("unable to change nls mapping\n"); return 0; @@ -180,19 +180,19 @@ int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi) } kfree(p); break; - case opt_decompose: + case Opt_decompose: clear_bit(HFSPLUS_SB_NODECOMPOSE, &sbi->flags); break; - case opt_nodecompose: + case Opt_nodecompose: set_bit(HFSPLUS_SB_NODECOMPOSE, &sbi->flags); break; - case opt_barrier: + case Opt_barrier: clear_bit(HFSPLUS_SB_NOBARRIER, &sbi->flags); break; - case opt_nobarrier: + case Opt_nobarrier: set_bit(HFSPLUS_SB_NOBARRIER, &sbi->flags); break; - case opt_force: + case Opt_force: set_bit(HFSPLUS_SB_FORCE, &sbi->flags); break; default: