Home
last modified time | relevance | path

Searched hist:"40 fcf5a9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Dnamei.c40fcf5a9 Tue Jan 14 12:07:57 CST 2020 Al Viro <viro@zeniv.linux.org.uk> 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: Al Viro <viro@zeniv.linux.org.uk>
40fcf5a9 Tue Jan 14 12:07:57 CST 2020 Al Viro <viro@zeniv.linux.org.uk> 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: Al Viro <viro@zeniv.linux.org.uk>