Skip to content

Commit

Permalink
fs/affs/namei.c: forward declarations clean-up
Browse files Browse the repository at this point in the history
Move dentry_operations structures and remove forward declarations.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Fabian Frederick <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Feb 28, 2017
1 parent c161820 commit f567acc
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions fs/affs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
};

0 comments on commit f567acc

Please sign in to comment.