simpler calling conventions for filename_mountpoint()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 22 Jan 2015 07:49:00 +0000 (02:49 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 23 Jan 2015 05:22:21 +0000 (00:22 -0500)
commitcbaab2db9103cc6727c7166d2fda9f64038c828c
tree380b2158c40f5df9ed2330d801a2a70f695ec5eb
parent5168910413830435fa3f0a593933a83721ec8bad
simpler calling conventions for filename_mountpoint()

a) make it accept ERR_PTR() as filename (and return its PTR_ERR() in that case)
b) make it putname() the sucker in the end otherwise

simplifies life for callers...

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