Lines Matching refs:ipc_ns
47 struct ipc_namespace *ipc_ns; member
232 struct ipc_namespace *ipc_ns, umode_t mode, in mqueue_get_inode() argument
269 info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, in mqueue_get_inode()
270 ipc_ns->mq_msg_default); in mqueue_get_inode()
271 info->attr.mq_msgsize = min(ipc_ns->mq_msgsize_max, in mqueue_get_inode()
272 ipc_ns->mq_msgsize_default); in mqueue_get_inode()
299 if (info->attr.mq_maxmsg > ipc_ns->mq_msg_max || in mqueue_get_inode()
300 info->attr.mq_msgsize > ipc_ns->mq_msgsize_max) in mqueue_get_inode()
367 return get_tree_keyed(fc, mqueue_fill_super, ctx->ipc_ns); in mqueue_get_tree()
374 put_ipc_ns(ctx->ipc_ns); in mqueue_fs_context_free()
386 ctx->ipc_ns = get_ipc_ns(current->nsproxy->ipc_ns); in mqueue_init_fs_context()
388 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); in mqueue_init_fs_context()
405 put_ipc_ns(ctx->ipc_ns); in mq_create_mount()
406 ctx->ipc_ns = get_ipc_ns(ns); in mq_create_mount()
408 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); in mq_create_mount()
441 struct ipc_namespace *ipc_ns; in mqueue_evict_inode() local
450 ipc_ns = get_ns_from_inode(inode); in mqueue_evict_inode()
483 if (ipc_ns) in mqueue_evict_inode()
484 ipc_ns->mq_queues_count--; in mqueue_evict_inode()
488 if (ipc_ns) in mqueue_evict_inode()
489 put_ipc_ns(ipc_ns); in mqueue_evict_inode()
498 struct ipc_namespace *ipc_ns; in mqueue_create_attr() local
501 ipc_ns = __get_ns_from_inode(dir); in mqueue_create_attr()
502 if (!ipc_ns) { in mqueue_create_attr()
507 if (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max && in mqueue_create_attr()
512 ipc_ns->mq_queues_count++; in mqueue_create_attr()
515 inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr); in mqueue_create_attr()
519 ipc_ns->mq_queues_count--; in mqueue_create_attr()
523 put_ipc_ns(ipc_ns); in mqueue_create_attr()
532 if (ipc_ns) in mqueue_create_attr()
533 put_ipc_ns(ipc_ns); in mqueue_create_attr()
801 struct vfsmount *mnt = current->nsproxy->ipc_ns->mq_mnt; in do_mq_open()
863 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in SYSCALL_DEFINE1() local
864 struct vfsmount *mnt = ipc_ns->mq_mnt; in SYSCALL_DEFINE1()