]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/namespace.h
[PATCH] swsusp: Improve handling of highmem
[linux-2.6-omap-h63xx.git] / include / linux / namespace.h
index 3abc8e3b4879a5eac2dd54374f0fb9b37ca9f3a7..d137009f0b2be0feb70efcffba537f899195865d 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <linux/mount.h>
 #include <linux/sched.h>
+#include <linux/nsproxy.h>
 
 struct namespace {
        atomic_t                count;
@@ -26,11 +27,8 @@ static inline void put_namespace(struct namespace *namespace)
 
 static inline void exit_namespace(struct task_struct *p)
 {
-       struct namespace *namespace = p->namespace;
+       struct namespace *namespace = p->nsproxy->namespace;
        if (namespace) {
-               task_lock(p);
-               p->namespace = NULL;
-               task_unlock(p);
                put_namespace(namespace);
        }
 }