Lines Matching defs:ipc_ns
47 struct ipc_namespace *ipc_ns;
291 struct ipc_namespace *ipc_ns, umode_t mode,
327 info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max,
328 ipc_ns->mq_msg_default);
329 info->attr.mq_msgsize = min(ipc_ns->mq_msgsize_max,
330 ipc_ns->mq_msgsize_default);
357 if (info->attr.mq_maxmsg > ipc_ns->mq_msg_max ||
358 info->attr.mq_msgsize > ipc_ns->mq_msgsize_max)
434 fc->s_fs_info = ctx->ipc_ns;
437 return get_tree_keyed(fc, mqueue_fill_super, ctx->ipc_ns);
444 put_ipc_ns(ctx->ipc_ns);
456 ctx->ipc_ns = get_ipc_ns(current->nsproxy->ipc_ns);
458 fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns);
480 put_ipc_ns(ctx->ipc_ns);
481 ctx->ipc_ns = get_ipc_ns(ns);
483 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);
552 * (ipc_ns = sb->s_fs_info) is either a valid ipc_ns
556 if (ipc_ns)
557 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);
897 struct vfsmount *mnt = current->nsproxy->ipc_ns->mq_mnt;
959 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns;
960 struct vfsmount *mnt = ipc_ns->mq_mnt;