new helper: __legitimize_mnt()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 May 2015 15:43:53 +0000 (11:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 12:13:14 +0000 (08:13 -0400)
commit294d71ff2f020aa2ef7057a7bd10cf2ec71b5ee3
treeb5fe63b7b42ea32ba0d05eca331548e623f66a97
parent31956502dd2c9432523d01373a9dc0e5931cfa1c
new helper: __legitimize_mnt()

same as legitimize_mnt(), except that it does *not* drop and regain
rcu_read_lock; return values are
0  =>  grabbed a reference, we are fine
1  =>  failed, just go away
-1 =>  failed, go away and mntput(bastard) when outside of rcu_read_lock

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