]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3fb6f995139c6c71b3cb65c59b501ae06efe259
tree26ce8ddc943956ab22c1a14b9aac61e9c994d391
parent4b6011081cb564126a41770d960fccdc5efbe07c
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