Commit c9c6cac0c2bdbda42e7b804838648d0bc60ddb13
1 parent
15a9155fe3
Exists in
master
and in
7 other branches
kill path_lookup()
all remaining callers pass LOOKUP_PARENT to it, so flags argument can die; renamed to kern_path_parent() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 6 changed files with 8 additions and 9 deletions Side-by-side Diff
arch/powerpc/platforms/cell/spufs/syscalls.c
fs/namei.c
... | ... | @@ -1747,10 +1747,9 @@ |
1747 | 1747 | return retval; |
1748 | 1748 | } |
1749 | 1749 | |
1750 | -int path_lookup(const char *name, unsigned int flags, | |
1751 | - struct nameidata *nd) | |
1750 | +int kern_path_parent(const char *name, struct nameidata *nd) | |
1752 | 1751 | { |
1753 | - return do_path_lookup(AT_FDCWD, name, flags, nd); | |
1752 | + return do_path_lookup(AT_FDCWD, name, LOOKUP_PARENT, nd); | |
1754 | 1753 | } |
1755 | 1754 | |
1756 | 1755 | int kern_path(const char *name, unsigned int flags, struct path *path) |
... | ... | @@ -3586,7 +3585,7 @@ |
3586 | 3585 | EXPORT_SYMBOL(__page_symlink); |
3587 | 3586 | EXPORT_SYMBOL(page_symlink); |
3588 | 3587 | EXPORT_SYMBOL(page_symlink_inode_operations); |
3589 | -EXPORT_SYMBOL(path_lookup); | |
3588 | +EXPORT_SYMBOL(kern_path_parent); | |
3590 | 3589 | EXPORT_SYMBOL(kern_path); |
3591 | 3590 | EXPORT_SYMBOL(vfs_path_lookup); |
3592 | 3591 | EXPORT_SYMBOL(inode_permission); |
fs/ocfs2/refcounttree.c
include/linux/namei.h
... | ... | @@ -72,7 +72,7 @@ |
72 | 72 | |
73 | 73 | extern int kern_path(const char *, unsigned, struct path *); |
74 | 74 | |
75 | -extern int path_lookup(const char *, unsigned, struct nameidata *); | |
75 | +extern int kern_path_parent(const char *, struct nameidata *); | |
76 | 76 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, |
77 | 77 | const char *, unsigned int, struct nameidata *); |
78 | 78 |
kernel/audit_watch.c
net/unix/af_unix.c