]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/namespace.h
Merge with /home/shaggy/git/linus-clean/
[karo-tx-linux.git] / include / linux / namespace.h
index 9eca1558d72f4df6fbeb97fb35a68031b1d71390..6731977c4c13a00e39a251a12d7be31311960062 100644 (file)
@@ -9,16 +9,17 @@ struct namespace {
        atomic_t                count;
        struct vfsmount *       root;
        struct list_head        list;
-       struct rw_semaphore     sem;
+       wait_queue_head_t poll;
+       int event;
 };
 
-extern void umount_tree(struct vfsmount *);
 extern int copy_namespace(int, struct task_struct *);
 extern void __put_namespace(struct namespace *namespace);
 
 static inline void put_namespace(struct namespace *namespace)
 {
-       if (atomic_dec_and_test(&namespace->count))
+       if (atomic_dec_and_lock(&namespace->count, &vfsmount_lock))
+               /* releases vfsmount_lock */
                __put_namespace(namespace);
 }