namei: saner calling conventions for filename_parentat()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 12 May 2015 21:32:54 +0000 (17:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 15 May 2015 05:10:42 +0000 (01:10 -0400)
commit5c31b6cedb675199bfd18c08a1223c9b39daedd7
tree76b0c78f93d39284a5e6bc5925f313b285859818
parent181c37b6e4c1bdb061ed0d884c54f9a6e6cdac89
namei: saner calling conventions for filename_parentat()

a) make it reject ERR_PTR() for name
b) make it putname(name) on all other failure exits
c) make it return name on success

again, simplifies the callers

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