From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423259AbdAITNH (ORCPT ); Mon, 9 Jan 2017 14:13:07 -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?= 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, +}; -- 2.9.3