]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/nfs-01-Uninline-the-function-put_mnt_ns
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / nfs-01-Uninline-the-function-put_mnt_ns
diff --git a/src/patches/suse-2.6.27.31/patches.fixes/nfs-01-Uninline-the-function-put_mnt_ns b/src/patches/suse-2.6.27.31/patches.fixes/nfs-01-Uninline-the-function-put_mnt_ns
deleted file mode 100644 (file)
index 17e3f66..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-From 616511d039af402670de8500d0e24495113a9cab Mon Sep 17 00:00:00 2001
-From: Trond Myklebust <Trond.Myklebust@netapp.com>
-Date: Mon, 22 Jun 2009 15:09:13 -0400
-Subject: [PATCH 1/5] 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>
-Acked-by: NeilBrown <neilb@suse.de>
----
- fs/namespace.c                |    8 ++++++--
- include/linux/mnt_namespace.h |    9 +--------
- 2 files changed, 7 insertions(+), 10 deletions(-)
-
---- a/fs/namespace.c
-+++ b/fs/namespace.c
-@@ -2310,10 +2310,14 @@ void __init mnt_init(void)
-       init_mount_tree();
- }
--void __put_mnt_ns(struct mnt_namespace *ns)
-+void put_mnt_ns(struct mnt_namespace *ns)
- {
--      struct vfsmount *root = ns->root;
-+      struct vfsmount *root;
-       LIST_HEAD(umount_list);
-+
-+      if (!atomic_dec_and_lock(&ns->count, &vfsmount_lock))
-+              return;
-+      root = ns->root;
-       ns->root = NULL;
-       spin_unlock(&vfsmount_lock);
-       down_write(&namespace_sem);
---- a/include/linux/mnt_namespace.h
-+++ b/include/linux/mnt_namespace.h
-@@ -24,14 +24,7 @@ struct proc_mounts {
- 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)
- {