aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-01-05 15:45:18 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2010-03-03 13:00:19 -0500
commitec4f860597af41c6b71f4de86d8e86f710bfab54 (patch)
tree0e16659ad0c0a89567cca34069e1a6da7131d7f2 /fs/dcache.c
parent587d4a17d837ac0f17edb26f1b6c80c0abda6343 (diff)
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: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c45
1 files changed, 22 insertions, 23 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 953173a293a9..4365998b8df4 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -257,6 +257,7 @@ kill_it:
257 if (dentry) 257 if (dentry)
258 goto repeat; 258 goto repeat;
259} 259}
260EXPORT_SYMBOL(dput);
260 261
261/** 262/**
262 * d_invalidate - invalidate a dentry 263 * d_invalidate - invalidate a dentry
@@ -314,6 +315,7 @@ int d_invalidate(struct dentry * dentry)
314 spin_unlock(&dcache_lock); 315 spin_unlock(&dcache_lock);
315 return 0; 316 return 0;
316} 317}
318EXPORT_SYMBOL(d_invalidate);
317 319
318/* This should be called _only_ with dcache_lock held */ 320/* This should be called _only_ with dcache_lock held */
319 321
@@ -328,6 +330,7 @@ struct dentry * dget_locked(struct dentry *dentry)
328{ 330{
329 return __dget_locked(dentry); 331 return __dget_locked(dentry);
330} 332}
333EXPORT_SYMBOL(dget_locked);
331 334
332/** 335/**
333 * d_find_alias - grab a hashed alias of inode 336 * d_find_alias - grab a hashed alias of inode
@@ -384,6 +387,7 @@ struct dentry * d_find_alias(struct inode *inode)
384 } 387 }
385 return de; 388 return de;
386} 389}
390EXPORT_SYMBOL(d_find_alias);
387 391
388/* 392/*
389 * Try to kill dentries associated with this inode. 393 * Try to kill dentries associated with this inode.
@@ -408,6 +412,7 @@ restart:
408 } 412 }
409 spin_unlock(&dcache_lock); 413 spin_unlock(&dcache_lock);
410} 414}
415EXPORT_SYMBOL(d_prune_aliases);
411 416
412/* 417/*
413 * Throw away a dentry - free the inode, dput the parent. This requires that 418 * 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{ 615{
611 __shrink_dcache_sb(sb, NULL, 0); 616 __shrink_dcache_sb(sb, NULL, 0);
612} 617}
618EXPORT_SYMBOL(shrink_dcache_sb);
613 619
614/* 620/*
615 * destroy a single subtree of dentries for unmount 621 * destroy a single subtree of dentries for unmount
@@ -792,6 +798,7 @@ positive:
792 spin_unlock(&dcache_lock); 798 spin_unlock(&dcache_lock);
793 return 1; 799 return 1;
794} 800}
801EXPORT_SYMBOL(have_submounts);
795 802
796/* 803/*
797 * Search the dentry child list for the specified parent, 804 * Search the dentry child list for the specified parent,
@@ -876,6 +883,7 @@ void shrink_dcache_parent(struct dentry * parent)
876 while ((found = select_parent(parent)) != 0) 883 while ((found = select_parent(parent)) != 0)
877 __shrink_dcache_sb(sb, &found, 0); 884 __shrink_dcache_sb(sb, &found, 0);
878} 885}
886EXPORT_SYMBOL(shrink_dcache_parent);
879 887
880/* 888/*
881 * Scan `nr' dentries and return the number which remain. 889 * 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 976
969 return dentry; 977 return dentry;
970} 978}
979EXPORT_SYMBOL(d_alloc);
971 980
972struct dentry *d_alloc_name(struct dentry *parent, const char *name) 981struct dentry *d_alloc_name(struct dentry *parent, const char *name)
973{ 982{
@@ -1012,6 +1021,7 @@ void d_instantiate(struct dentry *entry, struct inode * inode)
1012 spin_unlock(&dcache_lock); 1021 spin_unlock(&dcache_lock);
1013 security_d_instantiate(entry, inode); 1022 security_d_instantiate(entry, inode);
1014} 1023}
1024EXPORT_SYMBOL(d_instantiate);
1015 1025
1016/** 1026/**
1017 * d_instantiate_unique - instantiate a non-aliased dentry 1027 * d_instantiate_unique - instantiate a non-aliased dentry
@@ -1108,6 +1118,7 @@ struct dentry * d_alloc_root(struct inode * root_inode)
1108 } 1118 }
1109 return res; 1119 return res;
1110} 1120}
1121EXPORT_SYMBOL(d_alloc_root);
1111 1122
1112static inline struct hlist_head *d_hash(struct dentry *parent, 1123static inline struct hlist_head *d_hash(struct dentry *parent,
1113 unsigned long hash) 1124 unsigned long hash)
@@ -1225,6 +1236,7 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
1225 d_add(dentry, inode); 1236 d_add(dentry, inode);
1226 return new; 1237 return new;
1227} 1238}
1239EXPORT_SYMBOL(d_splice_alias);
1228 1240
1229/** 1241/**
1230 * d_add_ci - lookup or allocate new dentry with case-exact name 1242 * d_add_ci - lookup or allocate new dentry with case-exact name
@@ -1314,6 +1326,7 @@ err_out:
1314 iput(inode); 1326 iput(inode);
1315 return ERR_PTR(error); 1327 return ERR_PTR(error);
1316} 1328}
1329EXPORT_SYMBOL(d_add_ci);
1317 1330
1318/** 1331/**
1319 * d_lookup - search for a dentry 1332 * d_lookup - search for a dentry
@@ -1357,6 +1370,7 @@ struct dentry * d_lookup(struct dentry * parent, struct qstr * name)
1357 } while (read_seqretry(&rename_lock, seq)); 1370 } while (read_seqretry(&rename_lock, seq));
1358 return dentry; 1371 return dentry;
1359} 1372}
1373EXPORT_SYMBOL(d_lookup);
1360 1374
1361struct dentry * __d_lookup(struct dentry * parent, struct qstr * name) 1375struct dentry * __d_lookup(struct dentry * parent, struct qstr * name)
1362{ 1376{
@@ -1483,6 +1497,7 @@ int d_validate(struct dentry *dentry, struct dentry *dparent)
1483out: 1497out:
1484 return 0; 1498 return 0;
1485} 1499}
1500EXPORT_SYMBOL(d_validate);
1486 1501
1487/* 1502/*
1488 * When a file is deleted, we have two options: 1503 * When a file is deleted, we have two options:
@@ -1528,6 +1543,7 @@ void d_delete(struct dentry * dentry)
1528 1543
1529 fsnotify_nameremove(dentry, isdir); 1544 fsnotify_nameremove(dentry, isdir);
1530} 1545}
1546EXPORT_SYMBOL(d_delete);
1531 1547
1532static void __d_rehash(struct dentry * entry, struct hlist_head *list) 1548static void __d_rehash(struct dentry * entry, struct hlist_head *list)
1533{ 1549{
@@ -1556,6 +1572,7 @@ void d_rehash(struct dentry * entry)
1556 spin_unlock(&entry->d_lock); 1572 spin_unlock(&entry->d_lock);
1557 spin_unlock(&dcache_lock); 1573 spin_unlock(&dcache_lock);
1558} 1574}
1575EXPORT_SYMBOL(d_rehash);
1559 1576
1560/* 1577/*
1561 * When switching names, the actual string doesn't strictly have to 1578 * 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 d_move_locked(dentry, target); 1719 d_move_locked(dentry, target);
1703 spin_unlock(&dcache_lock); 1720 spin_unlock(&dcache_lock);
1704} 1721}
1722EXPORT_SYMBOL(d_move);
1705 1723
1706/** 1724/**
1707 * d_ancestor - search for an ancestor 1725 * d_ancestor - search for an ancestor
@@ -1868,6 +1886,7 @@ shouldnt_be_hashed:
1868 spin_unlock(&dcache_lock); 1886 spin_unlock(&dcache_lock);
1869 BUG(); 1887 BUG();
1870} 1888}
1889EXPORT_SYMBOL_GPL(d_materialise_unique);
1871 1890
1872static int prepend(char **buffer, int *buflen, const char *str, int namelen) 1891static int prepend(char **buffer, int *buflen, const char *str, int namelen)
1873{ 1892{
@@ -2005,6 +2024,7 @@ char *d_path(const struct path *path, char *buf, int buflen)
2005 path_put(&root); 2024 path_put(&root);
2006 return res; 2025 return res;
2007} 2026}
2027EXPORT_SYMBOL(d_path);
2008 2028
2009/* 2029/*
2010 * Helper function for dentry_operations.d_dname() members 2030 * Helper function for dentry_operations.d_dname() members
@@ -2228,6 +2248,7 @@ ino_t find_inode_number(struct dentry *dir, struct qstr *name)
2228 } 2248 }
2229 return ino; 2249 return ino;
2230} 2250}
2251EXPORT_SYMBOL(find_inode_number);
2231 2252
2232static __initdata unsigned long dhash_entries; 2253static __initdata unsigned long dhash_entries;
2233static int __init set_dhash_entries(char *str) 2254static int __init set_dhash_entries(char *str)
@@ -2297,6 +2318,7 @@ static void __init dcache_init(void)
2297 2318
2298/* SLAB cache for __getname() consumers */ 2319/* SLAB cache for __getname() consumers */
2299struct kmem_cache *names_cachep __read_mostly; 2320struct kmem_cache *names_cachep __read_mostly;
2321EXPORT_SYMBOL(names_cachep);
2300 2322
2301EXPORT_SYMBOL(d_genocide); 2323EXPORT_SYMBOL(d_genocide);
2302 2324
@@ -2326,26 +2348,3 @@ void __init vfs_caches_init(unsigned long mempages)
2326 bdev_cache_init(); 2348 bdev_cache_init();
2327 chrdev_init(); 2349 chrdev_init();
2328} 2350}
2329
2330EXPORT_SYMBOL(d_alloc);
2331EXPORT_SYMBOL(d_alloc_root);
2332EXPORT_SYMBOL(d_delete);
2333EXPORT_SYMBOL(d_find_alias);
2334EXPORT_SYMBOL(d_instantiate);
2335EXPORT_SYMBOL(d_invalidate);
2336EXPORT_SYMBOL(d_lookup);
2337EXPORT_SYMBOL(d_move);
2338EXPORT_SYMBOL_GPL(d_materialise_unique);
2339EXPORT_SYMBOL(d_path);
2340EXPORT_SYMBOL(d_prune_aliases);
2341EXPORT_SYMBOL(d_rehash);
2342EXPORT_SYMBOL(d_splice_alias);
2343EXPORT_SYMBOL(d_add_ci);
2344EXPORT_SYMBOL(d_validate);
2345EXPORT_SYMBOL(dget_locked);
2346EXPORT_SYMBOL(dput);
2347EXPORT_SYMBOL(find_inode_number);
2348EXPORT_SYMBOL(have_submounts);
2349EXPORT_SYMBOL(names_cachep);
2350EXPORT_SYMBOL(shrink_dcache_parent);
2351EXPORT_SYMBOL(shrink_dcache_sb);