path_openat(): take O_PATH handling out of do_last()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Apr 2016 04:02:50 +0000 (00:02 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 2 May 2016 23:49:33 +0000 (19:49 -0400)
commit6ac087099edf09ca357e2f765e3e24677543897c
tree56dc485b6e28fba20710486a17b8025a690c876c
parent3b0a3c1ac1598722fc289da19219d14f2a37b31f
path_openat(): take O_PATH handling out of do_last()

do_last() and lookup_open() simpler that way and so does O_PATH
itself.  As it bloody well should: we find what the pathname
resolves to, same way as in stat() et.al. and associate it with
FMODE_PATH struct file.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c