2005-05-13 10:46:28

by Miklos Szeredi

[permalink] [raw]
Subject: [PATCH] make umount_tree() static

Make umount_tree() static, since it's not used outside namespace.c in
either -linus or -mm:

> grep -rlw umount_tree linux-2.6.12-rc4-mm1/
linux-2.6.12-rc4-mm1/fs/namespace.c
linux-2.6.12-rc4-mm1/include/linux/namespace.h

Signed-off-by: Miklos Szeredi <[email protected]>

Index: linux/include/linux/namespace.h
===================================================================
--- linux.orig/include/linux/namespace.h 2005-05-13 11:03:50.000000000 +0200
+++ linux/include/linux/namespace.h 2005-05-13 11:59:06.000000000 +0200
@@ -12,7 +12,6 @@ struct namespace {
struct rw_semaphore sem;
};

-extern void umount_tree(struct vfsmount *);
extern int copy_namespace(int, struct task_struct *);
extern void __put_namespace(struct namespace *namespace);

Index: linux/fs/namespace.c
===================================================================
--- linux.orig/fs/namespace.c 2005-05-13 11:58:53.000000000 +0200
+++ linux/fs/namespace.c 2005-05-13 11:59:06.000000000 +0200
@@ -337,7 +337,7 @@ int may_umount(struct vfsmount *mnt)

EXPORT_SYMBOL(may_umount);

-void umount_tree(struct vfsmount *mnt)
+static void umount_tree(struct vfsmount *mnt)
{
struct vfsmount *p;
LIST_HEAD(kill);