[PATCH] path_lookup()
authorAlexander Viro <viro@math.psu.edu>
Sat, 2 Mar 2002 05:30:33 +0000 (21:30 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Sat, 2 Mar 2002 05:30:33 +0000 (21:30 -0800)
commita3806a80d601c0d80f3c1daf8bad6fb2cdb48d4c
tree060531bcdfc574451610324042a21328db9f136b
parent2dee55cd6c8eb5362b5c10616dc866f0342425ad
[PATCH] path_lookup()

New helper:
path_lookup(name, flags, nd)
{
int err = 0;
if (path_init(name, flags, nd))
err = path_walk(name, nd);
return err;
}

Places doing that by hand converted to calling it.

Actually, quite a few of them were doing equivalent of __user_walk()
(getname() and if it was successful - call path_lookup() and putname()).
Converted to calling __user_walk().
fs/exec.c
fs/intermezzo/kml_reint.c
fs/intermezzo/presto.c
fs/intermezzo/vfs.c
fs/namei.c
fs/namespace.c
fs/nfsd/export.c
fs/open.c
fs/super.c
include/linux/fs.h
net/unix/af_unix.c