Skip to content
Commit 40fcf5a9 authored by Al Viro's avatar Al Viro
Browse files

merging pick_link() with get_link(), part 3



After a pure jump ("/" or procfs-style symlink) we don't need to
hold the link anymore.  link_path_walk() dropped it if such case
had been detected, lookup_last/do_last() (i.e. old trailing_symlink())
left it on the stack - it ended up calling terminate_walk() shortly
anyway, which would've purged the entire stack.

Do it in get_link() itself instead.  Simpler logics that way...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1ccac622
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment