This is actually PATCH 5/5. [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | | From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> | Subject: [RFC][PATCH 5/5] Remove copy_pid_ns() | | Remove copy_pid_ns() as its no longer needed. | | Signed-off-by: Sukadev Bhattiprolu <[EMAIL PROTECTED]> | Cc: Cedric Le Goater <[EMAIL PROTECTED]> | Cc: Dave Hansen <[EMAIL PROTECTED]> | Cc: Serge Hallyn <[EMAIL PROTECTED]> | Cc: [EMAIL PROTECTED] | --- | 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 | [EMAIL PROTECTED] | https://lists.osdl.org/mailman/listinfo/containers _______________________________________________ Containers mailing list [EMAIL PROTECTED] https://lists.osdl.org/mailman/listinfo/containers
_______________________________________________ Devel mailing list Devel@openvz.org https://openvz.org/mailman/listinfo/devel