summaryrefslogtreecommitdiffstats
path: root/include/linux/namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/namespace.h')
-rw-r--r--include/linux/namespace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/namespace.h b/include/linux/namespace.h
index 9eca1558d72..0e5a86f13b2 100644
--- a/include/linux/namespace.h
+++ b/include/linux/namespace.h
@@ -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);
}