Skip to content
Commit 294d71ff authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 31956502
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment