namespaces: mqueue ns: move mqueue_mnt into struct ipc_namespace
[safe/jmp/linux-2.6] / ipc / namespace.c
index 9171d94..4b4dc6d 100644 (file)
@@ -25,6 +25,7 @@ static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns)
        sem_init_ns(ns);
        msg_init_ns(ns);
        shm_init_ns(ns);
+       mq_init_ns(ns);
 
        /*
         * msgmni has already been computed for the new ipc ns.
@@ -101,6 +102,7 @@ void free_ipc_ns(struct kref *kref)
        sem_exit_ns(ns);
        msg_exit_ns(ns);
        shm_exit_ns(ns);
+       mq_exit_ns(ns);
        kfree(ns);
        atomic_dec(&nr_ipc_ns);