Lines Matching refs:ipc_ns
47 struct ipc_namespace *ipc_ns;
293 struct ipc_namespace *ipc_ns, umode_t mode,
330 info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max,
331 ipc_ns->mq_msg_default);
332 info->attr.mq_msgsize = min(ipc_ns->mq_msgsize_max,
333 ipc_ns->mq_msgsize_default);
360 if (info->attr.mq_maxmsg > ipc_ns->mq_msg_max ||
361 info->attr.mq_msgsize > ipc_ns->mq_msgsize_max)
433 fc->s_fs_info = ctx->ipc_ns;
436 return get_tree_keyed(fc, mqueue_fill_super, ctx->ipc_ns);
443 put_ipc_ns(ctx->ipc_ns);
455 ctx->ipc_ns = get_ipc_ns(current->nsproxy->ipc_ns);
457 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns);
479 put_ipc_ns(ctx->ipc_ns);
480 ctx->ipc_ns = get_ipc_ns(ns);
482 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns);
515 struct ipc_namespace *ipc_ns;
524 ipc_ns = get_ns_from_inode(inode);
553 * (ipc_ns = sb->s_fs_info) is either a valid ipc_ns
557 if (ipc_ns)
558 ipc_ns->mq_queues_count--;
562 if (ipc_ns)
563 put_ipc_ns(ipc_ns);
572 struct ipc_namespace *ipc_ns;
575 ipc_ns = __get_ns_from_inode(dir);
576 if (!ipc_ns) {
581 if (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max &&
586 ipc_ns->mq_queues_count++;
589 inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr);
593 ipc_ns->mq_queues_count--;
597 put_ipc_ns(ipc_ns);
606 if (ipc_ns)
607 put_ipc_ns(ipc_ns);
896 struct vfsmount *mnt = current->nsproxy->ipc_ns->mq_mnt;
958 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns;
959 struct vfsmount *mnt = ipc_ns->mq_mnt;