namei: fold put_link() into the failure case of complete_walk()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 May 2015 20:28:42 +0000 (16:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:20:17 +0000 (22:20 -0400)
commite8bb73dfb0aad673a3b9650e9af0ba1739a4df01
tree26ce8ddc943956ab22c1a14b9aac61e9c994d391
parentfab51e8ab25e1ad661ef8da42077de78477fba83
namei: fold put_link() into the failure case of complete_walk()

... and don't open-code unlazy_walk() in there - the only reason
for that is to avoid verfication of cached nd->root, which is
trivially avoided by discarding said cached nd->root first.

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