Commit ec4f8605 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Al Viro

fs/dcache.c: CodingStyle cleanup

Cleanup EXPORT* macros according to Documantation/CodingStyle.

Move EXPORT* macros to the line immediately after the closing
function brace.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 587d4a17
...@@ -257,6 +257,7 @@ void dput(struct dentry *dentry) ...@@ -257,6 +257,7 @@ void dput(struct dentry *dentry)
if (dentry) if (dentry)
goto repeat; goto repeat;
} }
EXPORT_SYMBOL(dput);
/** /**
* d_invalidate - invalidate a dentry * d_invalidate - invalidate a dentry
...@@ -314,6 +315,7 @@ int d_invalidate(struct dentry * dentry) ...@@ -314,6 +315,7 @@ int d_invalidate(struct dentry * dentry)
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
return 0; return 0;
} }
EXPORT_SYMBOL(d_invalidate);
/* This should be called _only_ with dcache_lock held */ /* This should be called _only_ with dcache_lock held */
...@@ -328,6 +330,7 @@ struct dentry * dget_locked(struct dentry *dentry) ...@@ -328,6 +330,7 @@ struct dentry * dget_locked(struct dentry *dentry)
{ {
return __dget_locked(dentry); return __dget_locked(dentry);
} }
EXPORT_SYMBOL(dget_locked);
/** /**
* d_find_alias - grab a hashed alias of inode * d_find_alias - grab a hashed alias of inode
...@@ -384,6 +387,7 @@ struct dentry * d_find_alias(struct inode *inode) ...@@ -384,6 +387,7 @@ struct dentry * d_find_alias(struct inode *inode)
} }
return de; return de;
} }
EXPORT_SYMBOL(d_find_alias);
/* /*
* Try to kill dentries associated with this inode. * Try to kill dentries associated with this inode.
...@@ -408,6 +412,7 @@ void d_prune_aliases(struct inode *inode) ...@@ -408,6 +412,7 @@ void d_prune_aliases(struct inode *inode)
} }
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
} }
EXPORT_SYMBOL(d_prune_aliases);
/* /*
* Throw away a dentry - free the inode, dput the parent. This requires that * Throw away a dentry - free the inode, dput the parent. This requires that
...@@ -610,6 +615,7 @@ void shrink_dcache_sb(struct super_block * sb) ...@@ -610,6 +615,7 @@ void shrink_dcache_sb(struct super_block * sb)
{ {
__shrink_dcache_sb(sb, NULL, 0); __shrink_dcache_sb(sb, NULL, 0);
} }
EXPORT_SYMBOL(shrink_dcache_sb);
/* /*
* destroy a single subtree of dentries for unmount * destroy a single subtree of dentries for unmount
...@@ -792,6 +798,7 @@ int have_submounts(struct dentry *parent) ...@@ -792,6 +798,7 @@ int have_submounts(struct dentry *parent)
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
return 1; return 1;
} }
EXPORT_SYMBOL(have_submounts);
/* /*
* Search the dentry child list for the specified parent, * Search the dentry child list for the specified parent,
...@@ -876,6 +883,7 @@ void shrink_dcache_parent(struct dentry * parent) ...@@ -876,6 +883,7 @@ void shrink_dcache_parent(struct dentry * parent)
while ((found = select_parent(parent)) != 0) while ((found = select_parent(parent)) != 0)
__shrink_dcache_sb(sb, &found, 0); __shrink_dcache_sb(sb, &found, 0);
} }
EXPORT_SYMBOL(shrink_dcache_parent);
/* /*
* Scan `nr' dentries and return the number which remain. * Scan `nr' dentries and return the number which remain.
...@@ -968,6 +976,7 @@ struct dentry *d_alloc(struct dentry * parent, const struct qstr *name) ...@@ -968,6 +976,7 @@ struct dentry *d_alloc(struct dentry * parent, const struct qstr *name)
return dentry; return dentry;
} }
EXPORT_SYMBOL(d_alloc);
struct dentry *d_alloc_name(struct dentry *parent, const char *name) struct dentry *d_alloc_name(struct dentry *parent, const char *name)
{ {
...@@ -1012,6 +1021,7 @@ void d_instantiate(struct dentry *entry, struct inode * inode) ...@@ -1012,6 +1021,7 @@ void d_instantiate(struct dentry *entry, struct inode * inode)
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
security_d_instantiate(entry, inode); security_d_instantiate(entry, inode);
} }
EXPORT_SYMBOL(d_instantiate);
/** /**
* d_instantiate_unique - instantiate a non-aliased dentry * d_instantiate_unique - instantiate a non-aliased dentry
...@@ -1108,6 +1118,7 @@ struct dentry * d_alloc_root(struct inode * root_inode) ...@@ -1108,6 +1118,7 @@ struct dentry * d_alloc_root(struct inode * root_inode)
} }
return res; return res;
} }
EXPORT_SYMBOL(d_alloc_root);
static inline struct hlist_head *d_hash(struct dentry *parent, static inline struct hlist_head *d_hash(struct dentry *parent,
unsigned long hash) unsigned long hash)
...@@ -1225,6 +1236,7 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry) ...@@ -1225,6 +1236,7 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
d_add(dentry, inode); d_add(dentry, inode);
return new; return new;
} }
EXPORT_SYMBOL(d_splice_alias);
/** /**
* d_add_ci - lookup or allocate new dentry with case-exact name * d_add_ci - lookup or allocate new dentry with case-exact name
...@@ -1314,6 +1326,7 @@ struct dentry *d_add_ci(struct dentry *dentry, struct inode *inode, ...@@ -1314,6 +1326,7 @@ struct dentry *d_add_ci(struct dentry *dentry, struct inode *inode,
iput(inode); iput(inode);
return ERR_PTR(error); return ERR_PTR(error);
} }
EXPORT_SYMBOL(d_add_ci);
/** /**
* d_lookup - search for a dentry * d_lookup - search for a dentry
...@@ -1357,6 +1370,7 @@ struct dentry * d_lookup(struct dentry * parent, struct qstr * name) ...@@ -1357,6 +1370,7 @@ struct dentry * d_lookup(struct dentry * parent, struct qstr * name)
} while (read_seqretry(&rename_lock, seq)); } while (read_seqretry(&rename_lock, seq));
return dentry; return dentry;
} }
EXPORT_SYMBOL(d_lookup);
struct dentry * __d_lookup(struct dentry * parent, struct qstr * name) struct dentry * __d_lookup(struct dentry * parent, struct qstr * name)
{ {
...@@ -1483,6 +1497,7 @@ int d_validate(struct dentry *dentry, struct dentry *dparent) ...@@ -1483,6 +1497,7 @@ int d_validate(struct dentry *dentry, struct dentry *dparent)
out: out:
return 0; return 0;
} }
EXPORT_SYMBOL(d_validate);
/* /*
* When a file is deleted, we have two options: * When a file is deleted, we have two options:
...@@ -1528,6 +1543,7 @@ void d_delete(struct dentry * dentry) ...@@ -1528,6 +1543,7 @@ void d_delete(struct dentry * dentry)
fsnotify_nameremove(dentry, isdir); fsnotify_nameremove(dentry, isdir);
} }
EXPORT_SYMBOL(d_delete);
static void __d_rehash(struct dentry * entry, struct hlist_head *list) static void __d_rehash(struct dentry * entry, struct hlist_head *list)
{ {
...@@ -1556,6 +1572,7 @@ void d_rehash(struct dentry * entry) ...@@ -1556,6 +1572,7 @@ void d_rehash(struct dentry * entry)
spin_unlock(&entry->d_lock); spin_unlock(&entry->d_lock);
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
} }
EXPORT_SYMBOL(d_rehash);
/* /*
* When switching names, the actual string doesn't strictly have to * When switching names, the actual string doesn't strictly have to
...@@ -1702,6 +1719,7 @@ void d_move(struct dentry * dentry, struct dentry * target) ...@@ -1702,6 +1719,7 @@ void d_move(struct dentry * dentry, struct dentry * target)
d_move_locked(dentry, target); d_move_locked(dentry, target);
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
} }
EXPORT_SYMBOL(d_move);
/** /**
* d_ancestor - search for an ancestor * d_ancestor - search for an ancestor
...@@ -1868,6 +1886,7 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode) ...@@ -1868,6 +1886,7 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode)
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
BUG(); BUG();
} }
EXPORT_SYMBOL_GPL(d_materialise_unique);
static int prepend(char **buffer, int *buflen, const char *str, int namelen) static int prepend(char **buffer, int *buflen, const char *str, int namelen)
{ {
...@@ -2005,6 +2024,7 @@ char *d_path(const struct path *path, char *buf, int buflen) ...@@ -2005,6 +2024,7 @@ char *d_path(const struct path *path, char *buf, int buflen)
path_put(&root); path_put(&root);
return res; return res;
} }
EXPORT_SYMBOL(d_path);
/* /*
* Helper function for dentry_operations.d_dname() members * Helper function for dentry_operations.d_dname() members
...@@ -2228,6 +2248,7 @@ ino_t find_inode_number(struct dentry *dir, struct qstr *name) ...@@ -2228,6 +2248,7 @@ ino_t find_inode_number(struct dentry *dir, struct qstr *name)
} }
return ino; return ino;
} }
EXPORT_SYMBOL(find_inode_number);
static __initdata unsigned long dhash_entries; static __initdata unsigned long dhash_entries;
static int __init set_dhash_entries(char *str) static int __init set_dhash_entries(char *str)
...@@ -2297,6 +2318,7 @@ static void __init dcache_init(void) ...@@ -2297,6 +2318,7 @@ static void __init dcache_init(void)
/* SLAB cache for __getname() consumers */ /* SLAB cache for __getname() consumers */
struct kmem_cache *names_cachep __read_mostly; struct kmem_cache *names_cachep __read_mostly;
EXPORT_SYMBOL(names_cachep);
EXPORT_SYMBOL(d_genocide); EXPORT_SYMBOL(d_genocide);
...@@ -2326,26 +2348,3 @@ void __init vfs_caches_init(unsigned long mempages) ...@@ -2326,26 +2348,3 @@ void __init vfs_caches_init(unsigned long mempages)
bdev_cache_init(); bdev_cache_init();
chrdev_init(); chrdev_init();
} }
EXPORT_SYMBOL(d_alloc);
EXPORT_SYMBOL(d_alloc_root);
EXPORT_SYMBOL(d_delete);
EXPORT_SYMBOL(d_find_alias);
EXPORT_SYMBOL(d_instantiate);
EXPORT_SYMBOL(d_invalidate);
EXPORT_SYMBOL(d_lookup);
EXPORT_SYMBOL(d_move);
EXPORT_SYMBOL_GPL(d_materialise_unique);
EXPORT_SYMBOL(d_path);
EXPORT_SYMBOL(d_prune_aliases);
EXPORT_SYMBOL(d_rehash);
EXPORT_SYMBOL(d_splice_alias);
EXPORT_SYMBOL(d_add_ci);
EXPORT_SYMBOL(d_validate);
EXPORT_SYMBOL(dget_locked);
EXPORT_SYMBOL(dput);
EXPORT_SYMBOL(find_inode_number);
EXPORT_SYMBOL(have_submounts);
EXPORT_SYMBOL(names_cachep);
EXPORT_SYMBOL(shrink_dcache_parent);
EXPORT_SYMBOL(shrink_dcache_sb);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment