VFS: Uninline the function put_mnt_ns()

In order to allow modules to use it without having to export vfsmount_lock.

Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Trond Myklebust 2009-06-22 15:09:13 -04:00 • committed by Linus Torvalds
commit 616511d039
2 changed files with 7 additions and 10 deletions

View file

@ -2246,10 +2246,14 @@ void __init mnt_init(void)
init_mount_tree();
}
void __put_mnt_ns(struct mnt_namespace *ns)
void put_mnt_ns(struct mnt_namespace *ns)
{
struct vfsmount *root = ns->root;
struct vfsmount *root;
LIST_HEAD(umount_list);
if (!atomic_dec_and_lock(&ns->count, &vfsmount_lock))
return;
root = ns->root;
ns->root = NULL;
spin_unlock(&vfsmount_lock);
down_write(&namespace_sem);