aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-15 03:37:47 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 04:57:20 -0400
commit0b3fca1fd1499f0f5a7486d494f96538f2b7e5b9 (patch)
tree53c2152346840cc335483543c166cd47914fbfb0 /fs/dcache.c
parent6b5e1223d9c3fae19b1a2acd789d9dab97de67c4 (diff)
kill find_inode_number()
the only remaining caller (in ncpfs) is guaranteed to return 0 - we only hit it if we'd just checked that there's no dentry with such name. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index b7f049c31526..b692c7e097c5 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2984,35 +2984,6 @@ void d_tmpfile(struct dentry *dentry, struct inode *inode)
2984} 2984}
2985EXPORT_SYMBOL(d_tmpfile); 2985EXPORT_SYMBOL(d_tmpfile);
2986 2986
2987/**
2988 * find_inode_number - check for dentry with name
2989 * @dir: directory to check
2990 * @name: Name to find.
2991 *
2992 * Check whether a dentry already exists for the given name,
2993 * and return the inode number if it has an inode. Otherwise
2994 * 0 is returned.
2995 *
2996 * This routine is used to post-process directory listings for
2997 * filesystems using synthetic inode numbers, and is necessary
2998 * to keep getcwd() working.
2999 */
3000
3001ino_t find_inode_number(struct dentry *dir, struct qstr *name)
3002{
3003 struct dentry * dentry;
3004 ino_t ino = 0;
3005
3006 dentry = d_hash_and_lookup(dir, name);
3007 if (!IS_ERR_OR_NULL(dentry)) {
3008 if (dentry->d_inode)
3009 ino = dentry->d_inode->i_ino;
3010 dput(dentry);
3011 }
3012 return ino;
3013}
3014EXPORT_SYMBOL(find_inode_number);
3015
3016static __initdata unsigned long dhash_entries; 2987static __initdata unsigned long dhash_entries;
3017static int __init set_dhash_entries(char *str) 2988static int __init set_dhash_entries(char *str)
3018{ 2989{