• Al Viro's avatar
    new helper: __legitimize_mnt() · 294d71ff
    Al Viro authored
    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>
    294d71ff
mount.h 3.55 KB