Re: [RFC][PATCH 5/5] Remove copy_pid_ns()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is actually PATCH 5/5.

sukadev@xxxxxxxxxx [sukadev@xxxxxxxxxx] wrote:
| 
| From: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx>
| Subject: [RFC][PATCH 5/5] Remove copy_pid_ns()
| 
| Remove copy_pid_ns() as its no longer needed.
| 
| Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx>
| Cc: Cedric Le Goater <clg@xxxxxxxxxx>
| Cc: Dave Hansen <haveblue@xxxxxxxxxx>
| Cc: Serge Hallyn <serue@xxxxxxxxxx>
| Cc: containers@xxxxxxxxxxxxxx
| ---
|  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@xxxxxxxxxxxxxx
| https://lists.osdl.org/mailman/listinfo/containers
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux