take post-lookup part of do_last() out of loop
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 5 Mar 2020 16:41:29 +0000 (11:41 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 Apr 2020 05:09:28 +0000 (01:09 -0400)
commitc5971b8c6354a95c9ee7eb722928af5000bac247
treeca99af95ce86268f890fb2a1b553d07dffa7a67c
parent0f705953012a753068b20016f55dc12d1f7e17e5
take post-lookup part of do_last() out of loop

now we can have open_last_lookups() directly from the loop in
path_openat() - the rest of do_last() never returns a symlink
to follow, so we can bloody well leave the loop first.

Rename the rest of that thing from do_last() to do_open() and
make it return an int.

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