summaryrefslogtreecommitdiffstats
path: root/kernel/taskstats.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-04-30 09:54:22 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 17:29:48 +0200
commitb7127aa4547d8cc8a5b569631e2b6ef613af1bb7 (patch)
treeb4a2ec699864c865c6286a48debfd13565ab4987 /kernel/taskstats.c
parentdevpts: factor out PTY index allocation (diff)
downloadlinux-b7127aa4547d8cc8a5b569631e2b6ef613af1bb7.tar.xz
linux-b7127aa4547d8cc8a5b569631e2b6ef613af1bb7.zip
free_pidmap: turn it into free_pidmap(struct upid *)
The callers of free_pidmap() pass 2 members of "struct upid", we can just pass "struct upid *" instead. Shaves off 10 bytes from pid.o. Also, simplify the alloc_pid's "out_free:" error path a little bit. This way it looks more clear which subset of pid->numbers[] we are freeing. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Pavel Emelyanov <xemul@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc :Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions