diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/namespace.h | 6 |
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); } |
