Lines Matching refs:new_ns
3289 struct mnt_namespace *new_ns;
3297 new_ns = kzalloc(sizeof(struct mnt_namespace), GFP_KERNEL_ACCOUNT);
3298 if (!new_ns) {
3303 ret = ns_alloc_inum(&new_ns->ns);
3305 kfree(new_ns);
3310 new_ns->ns.ops = &mntns_operations;
3312 new_ns->seq = atomic64_add_return(1, &mnt_ns_seq);
3313 atomic_set(&new_ns->count, 1);
3314 INIT_LIST_HEAD(&new_ns->list);
3315 init_waitqueue_head(&new_ns->poll);
3316 spin_lock_init(&new_ns->ns_lock);
3317 new_ns->user_ns = get_user_ns(user_ns);
3318 new_ns->ucounts = ucounts;
3319 return new_ns;
3326 struct mnt_namespace *new_ns;
3342 new_ns = alloc_mnt_ns(user_ns, false);
3343 if (IS_ERR(new_ns))
3344 return new_ns;
3354 free_mnt_ns(new_ns);
3362 new_ns->root = new;
3363 list_add_tail(&new_ns->list, &new->mnt_list);
3373 q->mnt_ns = new_ns;
3374 new_ns->mounts++;
3399 return new_ns;