Messages in this thread | | | Date | Fri, 16 Jan 2009 14:21:50 -0800 | From | Andrew Morton <> | Subject | Re: [PATCH 3/3] pids: refactor vnr/nr_ns helpers to make them safe |
| |
On Fri, 16 Jan 2009 06:55:20 +0100 Oleg Nesterov <oleg@redhat.com> wrote:
> --- CUR/include/linux/sched.h~SP_3_NR 2009-01-16 02:13:50.000000000 +0100 > +++ CUR/include/linux/sched.h 2009-01-16 04:16:12.000000000 +0100 > @@ -1481,17 +1481,23 @@ struct pid_namespace; > * > * see also pid_nr() etc in include/linux/pid.h > */ > +pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, > + struct pid_namespace *ns);
Sometime it would be nice to pull all the pid-related helpers out of sched.h, into a dedicated header file which is included only by those .c files which actually use them.
| |