mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
teach set_special_pids() to use struct pid
Change set_special_pids() to work with struct pid, not pid_t from global name space. This again speedups and imho cleanups the code, also a preparation for the next patch. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e4cc0a9c87
commit
8520d7c7f8
4 changed files with 18 additions and 18 deletions
|
|
@ -1632,7 +1632,7 @@ extern struct task_struct *find_task_by_vpid(pid_t nr);
|
|||
extern struct task_struct *find_task_by_pid_ns(pid_t nr,
|
||||
struct pid_namespace *ns);
|
||||
|
||||
extern void __set_special_pids(pid_t session, pid_t pgrp);
|
||||
extern void __set_special_pids(struct pid *pid);
|
||||
|
||||
/* per-UID process charging. */
|
||||
extern struct user_struct * alloc_uid(struct user_namespace *, uid_t);
|
||||
|
|
|
|||
Loading…
Reference in a new issue