From patchwork Mon Jan 9 19:12:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9505777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 181296071A for ; Mon, 9 Jan 2017 19:13:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02FEF2852B for ; Mon, 9 Jan 2017 19:13:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC0C128532; Mon, 9 Jan 2017 19:13:34 +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=-6.9 required=2.0 tests=BAYES_00,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 A41412852B for ; Mon, 9 Jan 2017 19:13:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423246AbdAITNG (ORCPT ); Mon, 9 Jan 2017 14:13:06 -0500 Received: from mailrelay103.isp.belgacom.be ([195.238.20.130]:9700 "EHLO mailrelay103.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164317AbdAITMU (ORCPT ); Mon, 9 Jan 2017 14:12:20 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AVBACm33NY/2ZisVtdHQEFAQsBgmxOA?= =?us-ascii?q?QEBAQEfQIErjVdykVoBknGCD4IKhiICgWZAFAECAQEBAQEBAWMohGkGViMQGTg?= =?us-ascii?q?5HgYTiGMRsjKEEIYNAQEIKIZFjw0FiHKGI4wHkUANkFySVR84gSQZGIZjPTWIZ?= =?us-ascii?q?gEBAQ?= X-IPAS-Result: =?us-ascii?q?A2AVBACm33NY/2ZisVtdHQEFAQsBgmxOAQEBAQEfQIErjVd?= =?us-ascii?q?ykVoBknGCD4IKhiICgWZAFAECAQEBAQEBAWMohGkGViMQGTg5HgYTiGMRsjKEE?= =?us-ascii?q?IYNAQEIKIZFjw0FiHKGI4wHkUANkFySVR84gSQZGIZjPTWIZgEBAQ?= Received: from 102.98-177-91.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([91.177.98.102]) by relay.skynet.be with ESMTP; 09 Jan 2017 20:12:15 +0100 From: Fabian Frederick To: Andrew Morton Cc: Jan Kara , Alexander Viro , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, fabf@skynet.be Subject: [PATCH V2 6/7 linux-next] fs/affs/namei.c: forward declarations clean-up Date: Mon, 9 Jan 2017 20:12:07 +0100 Message-Id: <20170109191208.6085-7-fabf@skynet.be> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170109191208.6085-1-fabf@skynet.be> References: <20170109191208.6085-1-fabf@skynet.be> 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 move dentry_operations structures and remove forward declarations Signed-off-by: Fabian Frederick --- fs/affs/namei.c | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/fs/affs/namei.c b/fs/affs/namei.c index 906ff5b..fb88446 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c @@ -13,26 +13,6 @@ typedef int (*toupper_t)(int); -static int affs_toupper(int ch); -static int affs_hash_dentry(const struct dentry *, struct qstr *); -static int affs_compare_dentry(const struct dentry *dentry, - unsigned int len, const char *str, const struct qstr *name); -static int affs_intl_toupper(int ch); -static int affs_intl_hash_dentry(const struct dentry *, struct qstr *); -static int affs_intl_compare_dentry(const struct dentry *dentry, - unsigned int len, const char *str, const struct qstr *name); - -const struct dentry_operations affs_dentry_operations = { - .d_hash = affs_hash_dentry, - .d_compare = affs_compare_dentry, -}; - -const struct dentry_operations affs_intl_dentry_operations = { - .d_hash = affs_intl_hash_dentry, - .d_compare = affs_intl_compare_dentry, -}; - - /* Simple toupper() for DOS\1 */ static int @@ -505,3 +485,13 @@ const struct export_operations affs_export_ops = { .fh_to_dentry = affs_fh_to_dentry, .fh_to_parent = affs_fh_to_parent, }; + +const struct dentry_operations affs_dentry_operations = { + .d_hash = affs_hash_dentry, + .d_compare = affs_compare_dentry, +}; + +const struct dentry_operations affs_intl_dentry_operations = { + .d_hash = affs_intl_hash_dentry, + .d_compare = affs_intl_compare_dentry, +};