summaryrefslogtreecommitdiffstats
path: root/drivers/pnp/base.h
diff options
context:
space:
mode:
authorAl Viro2015-05-08 23:37:07 +0200
committerAl Viro2015-05-11 14:12:57 +0200
commit3bdba28b72f5d2e7f3df031b04008b9a6fbdc775 (patch)
treec538a12b16e7c2cbd53eff4d07c7116babf96c6f /drivers/pnp/base.h
parentnamei: path_init() calling conventions change (diff)
downloadkernel-qcow2-linux-3bdba28b72f5d2e7f3df031b04008b9a6fbdc775.tar.gz
kernel-qcow2-linux-3bdba28b72f5d2e7f3df031b04008b9a6fbdc775.tar.xz
kernel-qcow2-linux-3bdba28b72f5d2e7f3df031b04008b9a6fbdc775.zip
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 <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/pnp/base.h')
0 files changed, 0 insertions, 0 deletions