do_last: unify may_open() call and everyting after it
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 9 Mar 2011 05:36:45 +0000 (00:36 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 13:15:27 +0000 (09:15 -0400)
commitca344a894b41a133dab07dfbbdf652c053f6658c
tree2ff61ce7ff0595b3200fa2d9b69e93a87e6c8427
parent9b44f1b3928b6f41532c9a1dc9a6fc665989ad5b
do_last: unify may_open() call and everyting after it

We have a bunch of diverging codepaths in do_last(); some of
them converge, but the case of having to create a new file
duplicates large part of common tail of the rest and exits
separately.  Massage them so that they could be merged.

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