Lines Matching refs:new_ns
3721 struct mnt_namespace *new_ns;
3729 new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL_ACCOUNT);
3730 if (!new_ns) {
3735 ret = ns_alloc_inum(&new_ns->ns);
3737 kfree(new_ns);
3742 new_ns->ns.ops = &mntns_operations;
3744 new_ns->seq = atomic64_add_return(1, &mnt_ns_seq);
3745 refcount_set(&new_ns->ns.count, 1);
3746 INIT_LIST_HEAD(&new_ns->list);
3747 init_waitqueue_head(&new_ns->poll);
3748 spin_lock_init(&new_ns->ns_lock);
3749 new_ns->user_ns = get_user_ns(user_ns);
3750 new_ns->ucounts = ucounts;
3751 return new_ns;
3758 struct mnt_namespace *new_ns;
3774 new_ns = alloc_mnt_ns(user_ns, false);
3775 if (IS_ERR(new_ns))
3776 return new_ns;
3786 free_mnt_ns(new_ns);
3794 new_ns->root = new;
3795 list_add_tail(&new_ns->list, &new->mnt_list);
3805 q->mnt_ns = new_ns;
3806 new_ns->mounts++;
3832 return new_ns;