Collect "operation mode" arguments of do_last() into a structure
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Feb 2011 18:39:45 +0000 (13:39 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 13:15:25 +0000 (09:15 -0400)
commitc3e380b0b3cfa613189fb91513efd88a65e1d9d8
treefd5f7d393beecb20d61cceb49b85c80f380790c2
parentf1afe9efc84476ca42fbb7301a441021063eead7
Collect "operation mode" arguments of do_last() into a structure

No point messing with passing shitloads of "operation mode" arguments
to do_open() one by one, especially since they are not going to change
during do_filp_open().  Collect them into a struct, fill it and pass
to do_last() by reference.

Make sure that lookup intent flags are correctly set and removed - we
want them for do_last(), but they make no sense for __do_follow_link().

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