lkml.org 
[lkml]   [2005]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] make umount_tree() static
From
Date
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 <miklos@szeredi.hu>

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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-05-13 12:50    [W:0.025 / U:14.928 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site