Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] fs/namei.c: make lookup_hash() static

As announced, lookup_hash() can now become static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
a244e169 0cb3463f

+1 -10
-7
Documentation/feature-removal-schedule.txt
··· 127 127 128 128 --------------------------- 129 129 130 - What: EXPORT_SYMBOL(lookup_hash) 131 - When: January 2006 132 - Why: Too low-level interface. Use lookup_one_len or lookup_create instead. 133 - Who: Christoph Hellwig <hch@lst.de> 134 - 135 - --------------------------- 136 - 137 130 What: CONFIG_FORCED_INLINING 138 131 When: June 2006 139 132 Why: Config option is there to see if gcc is good enough. (in january
+1 -2
fs/namei.c
··· 1254 1254 return dentry; 1255 1255 } 1256 1256 1257 - struct dentry * lookup_hash(struct nameidata *nd) 1257 + static struct dentry *lookup_hash(struct nameidata *nd) 1258 1258 { 1259 1259 return __lookup_hash(&nd->last, nd->dentry, nd); 1260 1260 } ··· 2697 2697 EXPORT_SYMBOL(get_write_access); /* binfmt_aout */ 2698 2698 EXPORT_SYMBOL(getname); 2699 2699 EXPORT_SYMBOL(lock_rename); 2700 - EXPORT_SYMBOL(lookup_hash); 2701 2700 EXPORT_SYMBOL(lookup_one_len); 2702 2701 EXPORT_SYMBOL(page_follow_link_light); 2703 2702 EXPORT_SYMBOL(page_put_link);
-1
include/linux/namei.h
··· 75 75 extern void release_open_intent(struct nameidata *); 76 76 77 77 extern struct dentry * lookup_one_len(const char *, struct dentry *, int); 78 - extern __deprecated_for_modules struct dentry * lookup_hash(struct nameidata *); 79 78 80 79 extern int follow_down(struct vfsmount **, struct dentry **); 81 80 extern int follow_up(struct vfsmount **, struct dentry **);