namei: move link/cookie pairs into nameidata
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 2 May 2015 23:38:35 +0000 (19:38 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:19:59 +0000 (22:19 -0400)
commit697fc6ca666cdb2638211229c8fa3b81eb6f2f1a
tree072865ab49dfbc4e1654b749d30ff2097f4395bf
parent9e18f10a30e0c49520fbda39751fcae760445b96
namei: move link/cookie pairs into nameidata

Array of MAX_NESTED_LINKS + 1 elements put into nameidata;
what used to be a local array in link_path_walk() occupies
entries 1 .. MAX_NESTED_LINKS in it, link and cookie from
the trailing symlink handling loops - entry 0.

This is _not_ the final arrangement; just an easily verified
incremental step.

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