From: Al Viro Date: Fri, 8 May 2015 21:37:07 +0000 (-0400) Subject: namei: lift link_path_walk() call out of trailing_symlink() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~213^2~42 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bdba28b72f5d2e7f3df031b04008b9a6fbdc775;p=pandora-kernel.git namei: lift link_path_walk() call out of trailing_symlink() Make trailing_symlink() return the pathname to traverse or ERR_PTR(-E...). A subtle point is that for "magic" symlinks it returns "" now - that leads to link_path_walk("", nd), which is immediately returning 0 and we are back to the treatment of the last component, at whereever the damn thing has left us. Reduces the stack footprint - link_path_walk() called on more shallow stack now. Signed-off-by: Al Viro --- Reading git-diff-tree failed