]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62977617725bf408b8c3b7bc6d16b06e05cf3260
tree56dc485b6e28fba20710486a17b8025a690c876c
parente260846b21b443469fff48afc616fbe058311b2d
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