[Devel] [RFC][PATCH] Remove copy_pid_ns()
sukadev at us.ibm.com
sukadev at us.ibm.com
Fri Mar 9 20:03:35 PST 2007
From: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Subject: [RFC][PATCH]
Remove copy_pid_ns() as its no longer needed.
Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Dave Hansen <haveblue at us.ibm.com>
Cc: Serge Hallyn <serue at us.ibm.com>
Cc: containers at lists.osdl.org
---
include/linux/pid_namespace.h | 1 -
kernel/pid.c | 12 ------------
2 files changed, 13 deletions(-)
Index: lx26-20-mm2b/include/linux/pid_namespace.h
===================================================================
--- lx26-20-mm2b.orig/include/linux/pid_namespace.h 2007-03-09 19:01:09.000000000 -0800
+++ lx26-20-mm2b/include/linux/pid_namespace.h 2007-03-09 19:02:05.000000000 -0800
@@ -31,7 +31,6 @@ static inline void get_pid_ns(struct pid
extern int unshare_pid_ns(unsigned long unshare_ns_flags,
struct pid_nr **new_pid_nr);
-extern int copy_pid_ns(int flags, struct task_struct *tsk);
extern void free_pid_ns(struct kref *kref);
extern struct pid_namespace *pid_ns(struct pid * pid);
Index: lx26-20-mm2b/kernel/pid.c
===================================================================
--- lx26-20-mm2b.orig/kernel/pid.c 2007-03-09 19:01:09.000000000 -0800
+++ lx26-20-mm2b/kernel/pid.c 2007-03-09 19:02:05.000000000 -0800
@@ -579,18 +579,6 @@ int unshare_pid_ns(unsigned long unshare
return 0;
}
-int copy_pid_ns(int flags, struct task_struct *tsk)
-{
- struct pid_namespace *old_ns = task_pid_ns(tsk);
- int err = 0;
-
- if (!old_ns)
- return 0;
-
- get_pid_ns(old_ns);
- return err;
-}
-
void free_pid_ns(struct kref *kref)
{
struct pid_namespace *ns;
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
More information about the Devel
mailing list