Commit c4a7808fc3d7a346d5d12e0d69d76d66d821488b

Authored by Josef 'Jeff' Sipek
Committed by Linus Torvalds
1 parent 16b6287a52

fs: mark link_path_walk static

Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@suse.de>
Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 3 additions and 2 deletions Side-by-side Diff

... ... @@ -107,6 +107,8 @@
107 107 * any extra contention...
108 108 */
109 109  
  110 +static int fastcall link_path_walk(const char *name, struct nameidata *nd);
  111 +
110 112 /* In order to reduce some races, while at the same time doing additional
111 113 * checking and hopefully speeding things up, we copy filenames to the
112 114 * kernel data space before using them..
... ... @@ -998,7 +1000,7 @@
998 1000 * Retry the whole path once, forcing real lookup requests
999 1001 * instead of relying on the dcache.
1000 1002 */
1001   -int fastcall link_path_walk(const char *name, struct nameidata *nd)
  1003 +static int fastcall link_path_walk(const char *name, struct nameidata *nd)
1002 1004 {
1003 1005 struct nameidata save = *nd;
1004 1006 int result;
include/linux/namei.h
... ... @@ -72,7 +72,6 @@
72 72 extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
73 73 const char *, unsigned int, struct nameidata *);
74 74 extern int FASTCALL(path_walk(const char *, struct nameidata *));
75   -extern int FASTCALL(link_path_walk(const char *, struct nameidata *));
76 75 extern void path_release(struct nameidata *);
77 76 extern void path_release_on_umount(struct nameidata *);
78 77