Skip to contentSkip to conversation

fs/affs/namei.c: forward declarations clean-up

PATCH New [email protected] 1 participant 1 message Feb 27, 2017 Affs file system

lore
Share & tools
lore
#0 lore raw

PATCH 26/78 fs/affs/namei.c: forward declarations clean-up

From: Fabian Frederick <[email protected]>
Subject: fs/affs/namei.c: forward declarations clean-up

Move dentry_operations structures and remove forward declarations.

---

 fs/affs/namei.c |   30 ++++++++++--------------------
 1 file changed, 10 insertions(+), 20 deletions(-)
fs/affs/namei.c renamed from fs/affs/namei.c~fs-affs-nameic-forward-declarations-clean-up +0 -19
diff -puN fs/affs/namei.c~fs-affs-nameic-forward-declarations-clean-up 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,
-};
-