From patchwork Tue Jan 3 21:31:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9495717 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 B572D606A9 for ; Tue, 3 Jan 2017 21:32:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A845327D13 for ; Tue, 3 Jan 2017 21:32:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BFDE27D45; Tue, 3 Jan 2017 21:32:08 +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 3D56927D13 for ; Tue, 3 Jan 2017 21:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936075AbdACVbq (ORCPT ); Tue, 3 Jan 2017 16:31:46 -0500 Received: from mailrelay109.isp.belgacom.be ([195.238.20.136]:8032 "EHLO mailrelay109.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966374AbdACVbV (ORCPT ); Tue, 3 Jan 2017 16:31:21 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2C9AgDrF2xY/2ZisVteHQEFAQsBgzcBA?= =?us-ascii?q?QEBAR+Ba41XcpN6AZJlgg+CCIYigU1AFAECAQEBAQEBAWIohUUjKSZLJBOIYxG?= =?us-ascii?q?xaIpehkWPCAWIZoYgi3eRPgKQU5I9HziBKoNCAYJJPTSITQEBAQ?= X-IPAS-Result: =?us-ascii?q?A2C9AgDrF2xY/2ZisVteHQEFAQsBgzcBAQEBAR+Ba41XcpN?= =?us-ascii?q?6AZJlgg+CCIYigU1AFAECAQEBAQEBAWIohUUjKSZLJBOIYxGxaIpehkWPCAWIZ?= =?us-ascii?q?oYgi3eRPgKQU5I9HziBKoNCAYJJPTSITQEBAQ?= Received: from 102.98-177-91.adsl-dyn.isp.belgacom.be (HELO inkjet2.lan) ([91.177.98.102]) by relay.skynet.be with ESMTP; 03 Jan 2017 22:31:18 +0100 From: Fabian Frederick To: Andrew Morton Cc: Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, fabf@skynet.be Subject: [PATCH 6/6 linux-next] fs/affs/namei.c: forward declarations clean-up Date: Tue, 3 Jan 2017 22:31:17 +0100 Message-Id: <1483479077-5407-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.7.4 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, +};