Lines Matching refs:ipc_ns
47 struct ipc_namespace *ipc_ns; member
291 struct ipc_namespace *ipc_ns, umode_t mode, in mqueue_get_inode() argument
327 info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, in mqueue_get_inode()
328 ipc_ns->mq_msg_default); in mqueue_get_inode()
329 info->attr.mq_msgsize = min(ipc_ns->mq_msgsize_max, in mqueue_get_inode()
330 ipc_ns->mq_msgsize_default); in mqueue_get_inode()
357 if (info->attr.mq_maxmsg > ipc_ns->mq_msg_max || in mqueue_get_inode()
358 info->attr.mq_msgsize > ipc_ns->mq_msgsize_max) in mqueue_get_inode()
434 fc->s_fs_info = ctx->ipc_ns; in mqueue_get_tree()
437 return get_tree_keyed(fc, mqueue_fill_super, ctx->ipc_ns); in mqueue_get_tree()
444 put_ipc_ns(ctx->ipc_ns); in mqueue_fs_context_free()
456 ctx->ipc_ns = get_ipc_ns(current->nsproxy->ipc_ns); in mqueue_init_fs_context()
458 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); in mqueue_init_fs_context()
480 put_ipc_ns(ctx->ipc_ns); in mq_create_mount()
481 ctx->ipc_ns = get_ipc_ns(ns); in mq_create_mount()
483 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); in mq_create_mount()
515 struct ipc_namespace *ipc_ns; in mqueue_evict_inode() local
524 ipc_ns = get_ns_from_inode(inode); in mqueue_evict_inode()
556 if (ipc_ns) in mqueue_evict_inode()
557 ipc_ns->mq_queues_count--; in mqueue_evict_inode()
562 if (ipc_ns) in mqueue_evict_inode()
563 put_ipc_ns(ipc_ns); in mqueue_evict_inode()
572 struct ipc_namespace *ipc_ns; in mqueue_create_attr() local
575 ipc_ns = __get_ns_from_inode(dir); in mqueue_create_attr()
576 if (!ipc_ns) { in mqueue_create_attr()
581 if (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max && in mqueue_create_attr()
586 ipc_ns->mq_queues_count++; in mqueue_create_attr()
589 inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr); in mqueue_create_attr()
593 ipc_ns->mq_queues_count--; in mqueue_create_attr()
597 put_ipc_ns(ipc_ns); in mqueue_create_attr()
606 if (ipc_ns) in mqueue_create_attr()
607 put_ipc_ns(ipc_ns); in mqueue_create_attr()
896 struct vfsmount *mnt = current->nsproxy->ipc_ns->mq_mnt; in do_mq_open()
958 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in SYSCALL_DEFINE1() local
959 struct vfsmount *mnt = ipc_ns->mq_mnt; in SYSCALL_DEFINE1()