namei: have terminate_walk() do put_link() on everything left
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 May 2015 12:34:59 +0000 (08:34 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:20:11 +0000 (22:20 -0400)
commit1543972678e31bcfbc7f15170c12fb601c9f5c90
treec07cbddee4c18840a6a74859e8620965443ce4e4
parent191d7f73e25c460858bd9467d528b48fdb8cef59
namei: have terminate_walk() do put_link() on everything left

All callers of terminate_walk() are followed by more or less
open-coded eqiuvalent of "do put_link() on everything left
in nd->stack".  Better done in terminate_walk() itself, and
when we go for RCU symlink traversal we'll have to do it
there anyway.

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