aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c4
-rw-r--r--include/linux/namei.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 3bdb29615a9d..b9fdda8c0930 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -107,6 +107,8 @@
107 * any extra contention... 107 * any extra contention...
108 */ 108 */
109 109
110static int fastcall link_path_walk(const char *name, struct nameidata *nd);
111
110/* In order to reduce some races, while at the same time doing additional 112/* In order to reduce some races, while at the same time doing additional
111 * checking and hopefully speeding things up, we copy filenames to the 113 * checking and hopefully speeding things up, we copy filenames to the
112 * kernel data space before using them.. 114 * kernel data space before using them..
@@ -998,7 +1000,7 @@ return_err:
998 * Retry the whole path once, forcing real lookup requests 1000 * Retry the whole path once, forcing real lookup requests
999 * instead of relying on the dcache. 1001 * instead of relying on the dcache.
1000 */ 1002 */
1001int fastcall link_path_walk(const char *name, struct nameidata *nd) 1003static int fastcall link_path_walk(const char *name, struct nameidata *nd)
1002{ 1004{
1003 struct nameidata save = *nd; 1005 struct nameidata save = *nd;
1004 int result; 1006 int result;
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 2e21af0989d9..18ea81265068 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -72,7 +72,6 @@ extern int FASTCALL(path_lookup(const char *, unsigned, struct nameidata *));
72extern int vfs_path_lookup(struct dentry *, struct vfsmount *, 72extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
73 const char *, unsigned int, struct nameidata *); 73 const char *, unsigned int, struct nameidata *);
74extern int FASTCALL(path_walk(const char *, struct nameidata *)); 74extern int FASTCALL(path_walk(const char *, struct nameidata *));
75extern int FASTCALL(link_path_walk(const char *, struct nameidata *));
76extern void path_release(struct nameidata *); 75extern void path_release(struct nameidata *);
77extern void path_release_on_umount(struct nameidata *); 76extern void path_release_on_umount(struct nameidata *);
78 77