namei: take put_link() into {lookup,mountpoint,do}_last()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 May 2015 12:26:45 +0000 (08:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:20:11 +0000 (22:20 -0400)
commit191d7f73e25c460858bd9467d528b48fdb8cef59
tree5c7655de630ec4d0086ecb19431319e409991c9d
parent1bc4b813e8e5bda23a31892712e04905f0c7ffba
namei: take put_link() into {lookup,mountpoint,do}_last()

rationale: we'll need to have terminate_walk() do put_link() on
everything, which will mean that in some cases ..._last() will do
put_link() anyway.  Easier to have them do it in all cases.

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