diff options
Diffstat (limited to 'include/linux/namespace.h')
| -rw-r--r-- | include/linux/namespace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/namespace.h b/include/linux/namespace.h index 9eca1558d7..0e5a86f13b 100644 --- a/include/linux/namespace.h +++ b/include/linux/namespace.h | |||
| @@ -12,13 +12,13 @@ struct namespace { | |||
| 12 | struct rw_semaphore sem; | 12 | struct rw_semaphore sem; |
| 13 | }; | 13 | }; |
| 14 | 14 | ||
| 15 | extern void umount_tree(struct vfsmount *); | ||
| 16 | extern int copy_namespace(int, struct task_struct *); | 15 | extern int copy_namespace(int, struct task_struct *); |
| 17 | extern void __put_namespace(struct namespace *namespace); | 16 | extern void __put_namespace(struct namespace *namespace); |
| 18 | 17 | ||
| 19 | static inline void put_namespace(struct namespace *namespace) | 18 | static inline void put_namespace(struct namespace *namespace) |
| 20 | { | 19 | { |
| 21 | if (atomic_dec_and_test(&namespace->count)) | 20 | if (atomic_dec_and_lock(&namespace->count, &vfsmount_lock)) |
| 21 | /* releases vfsmount_lock */ | ||
| 22 | __put_namespace(namespace); | 22 | __put_namespace(namespace); |
| 23 | } | 23 | } |
| 24 | 24 | ||
