VFS: export vfs_path_lookup
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 19 Nov 2013 22:18:31 +0000 (17:18 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 5 Sep 2015 01:54:52 +0000 (21:54 -0400)
In 3.12, this useful function was unexported: wrapfs needs a way to lookup
relative to a struct path and use a proper vfsmount, unlike lookup_one_len.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
include/linux/namei.h

index c8990779f0c33b99e552ca9406621cde03f49443..5c1430c5e53f75c824d4e54e72c7190b23834028 100644 (file)
@@ -60,6 +60,8 @@ extern struct dentry *user_path_create(int, const char __user *, struct path *,
 extern void done_path_create(struct path *, struct dentry *);
 extern struct dentry *kern_path_locked(const char *, struct path *);
 extern int kern_path_mountpoint(int, const char *, struct path *, unsigned int);
+extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
+                          const char *, unsigned int, struct path *);
 
 extern struct dentry *lookup_one_len(const char *, struct dentry *, int);