Skip to content

Commit a244e16

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[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>
1 parent 0cb3463 commit a244e16

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,6 @@ Who: Christoph Hellwig <hch@lst.de>
127127

128128
---------------------------
129129

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-
137130
What: CONFIG_FORCED_INLINING
138131
When: June 2006
139132
Why: Config option is there to see if gcc is good enough. (in january

‎fs/namei.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ static struct dentry * __lookup_hash(struct qstr *name, struct dentry * base, st
12541254
return dentry;
12551255
}
12561256

1257-
struct dentry * lookup_hash(struct nameidata *nd)
1257+
static struct dentry *lookup_hash(struct nameidata *nd)
12581258
{
12591259
return __lookup_hash(&nd->last, nd->dentry, nd);
12601260
}
@@ -2697,7 +2697,6 @@ EXPORT_SYMBOL(follow_up);
26972697
EXPORT_SYMBOL(get_write_access); /* binfmt_aout */
26982698
EXPORT_SYMBOL(getname);
26992699
EXPORT_SYMBOL(lock_rename);
2700-
EXPORT_SYMBOL(lookup_hash);
27012700
EXPORT_SYMBOL(lookup_one_len);
27022701
EXPORT_SYMBOL(page_follow_link_light);
27032702
EXPORT_SYMBOL(page_put_link);

‎include/linux/namei.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ extern struct file *nameidata_to_filp(struct nameidata *nd, int flags);
7575
extern void release_open_intent(struct nameidata *);
7676

7777
extern struct dentry * lookup_one_len(const char *, struct dentry *, int);
78-
extern __deprecated_for_modules struct dentry * lookup_hash(struct nameidata *);
7978

8079
extern int follow_down(struct vfsmount **, struct dentry **);
8180
extern int follow_up(struct vfsmount **, struct dentry **);

0 commit comments

Comments
 (0)