summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorManeesh Soni <maneesh@in.ibm.com>2003-07-13 18:49:09 -0700
committerJeff Garzik <jgarzik@redhat.com>2003-07-13 18:49:09 -0700
commitb66daf655303089437b0ce08e25d223dfb456bbc (patch)
tree081bd3702b6e19682af3e65d2224b09fc7101290 /include/linux
parent112f7aa92a1c50715b1e153e10de8bbb9da3a1d4 (diff)
[PATCH] vfsmount_lock-fix
This fixes one place where I missed the replacing dcache_lock with vfsmount_lock in put_namespace(). Tested with CLONE_NEWNS flag also.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/namespace.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/namespace.h b/include/linux/namespace.h
index e7b313a202b6..b5699538afac 100644
--- a/include/linux/namespace.h
+++ b/include/linux/namespace.h
@@ -2,7 +2,7 @@
#define _NAMESPACE_H_
#ifdef __KERNEL__
-#include <linux/dcache.h>
+#include <linux/mount.h>
#include <linux/sched.h>
struct namespace {
@@ -19,9 +19,9 @@ static inline void put_namespace(struct namespace *namespace)
{
if (atomic_dec_and_test(&namespace->count)) {
down_write(&namespace->sem);
- spin_lock(&dcache_lock);
+ spin_lock(&vfsmount_lock);
umount_tree(namespace->root);
- spin_unlock(&dcache_lock);
+ spin_unlock(&vfsmount_lock);
up_write(&namespace->sem);
kfree(namespace);
}