diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-06-22 23:09:13 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-23 08:28:25 +0400 |
commit | 616511d039af402670de8500d0e24495113a9cab (patch) | |
tree | 825a34ab670dedc463ba7252a177793746c010c7 /include | |
parent | 31950eb66ff47c946fd9c65c2f8c94b6b7ba13fc (diff) | |
download | linux-616511d039af402670de8500d0e24495113a9cab.tar.xz |
VFS: Uninline the function put_mnt_ns()
In order to allow modules to use it without having to export vfsmount_lock.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mnt_namespace.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/mnt_namespace.h b/include/linux/mnt_namespace.h index 3a059298cc19..299d11af5f79 100644 --- a/include/linux/mnt_namespace.h +++ b/include/linux/mnt_namespace.h @@ -26,14 +26,7 @@ struct fs_struct; extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, struct fs_struct *); -extern void __put_mnt_ns(struct mnt_namespace *ns); - -static inline void put_mnt_ns(struct mnt_namespace *ns) -{ - if (atomic_dec_and_lock(&ns->count, &vfsmount_lock)) - /* releases vfsmount_lock */ - __put_mnt_ns(ns); -} +extern void put_mnt_ns(struct mnt_namespace *ns); static inline void exit_mnt_ns(struct task_struct *p) { |