]> git.baikalelectronics.ru Git - kernel.git/commit
Turn resolution of trailing symlinks iterative everywhere
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 01:54:55 +0000 (21:54 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 15 Mar 2011 21:16:25 +0000 (17:16 -0400)
commit2bdfed38038a9efbe3aee54e8c987061a6fe9940
tree834722d850b2f6a82a07464680244847ed477755
parentc225e66de73d44e5ee6aaf314c78d39d1e8f4818
Turn resolution of trailing symlinks iterative everywhere

The last remaining place (resolution of nested symlink) converted
to the loop of the same kind we have in path_lookupat() and
path_openat().

Note that we still *do* have a recursion in pathname resolution;
can't avoid it, really.  However, it's strictly for nested symlinks
now - i.e. ones in the middle of a pathname.

link_path_walk() has lost the tail now - it always walks everything
except the last component.

do_follow_link() renamed to nested_symlink() and moved down.

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