]> 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)
commita630855ac130453d349ab6732c9f5e0bd7ce5741
tree26ce8ddc943956ab22c1a14b9aac61e9c994d391
parentdc0cf75881e7ab6d7f46ca3ae5685f0876f1c84c
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