Re: [PATCH 3/3] pids: refactor vnr/nr_ns helpers to make them safe

From: Andrew Morton
Date: Fri Jan 16 2009 - 17:22:37 EST


On Fri, 16 Jan 2009 06:55:20 +0100
Oleg Nesterov <oleg@xxxxxxxxxx> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/