]> err.no Git - linux-2.6/blobdiff - include/linux/namespace.h
[PATCH] largefile support for accounting
[linux-2.6] / include / linux / namespace.h
index 9eca1558d72f4df6fbeb97fb35a68031b1d71390..0e5a86f13b2f8b4bbac4b50f32836827fef9fae8 100644 (file)
@@ -12,13 +12,13 @@ struct namespace {
        struct rw_semaphore     sem;
 };
 
-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);
 }