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>
Tue, 27 Dec 2016 19:05:11 +0000 (14:05 -0500)
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 ec5ec2818a288d52158098e829fb57d68e4ec87b..3c7a5b5b05f3776de8eee1f238fd407eedc7640e 100644 (file)
@@ -76,6 +76,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);
 extern struct dentry *lookup_one_len_unlocked(const char *, struct dentry *, int);