[PATCH] taskstats: cleanup ->signal->stats allocation
authorOleg Nesterov <oleg@tv-sign.ru>
Thu, 7 Dec 2006 04:36:52 +0000 (20:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:34 +0000 (08:39 -0800)
commit34ec12349c8a9505adc59d72f92b4595bc2483ff
tree2307c825f1a0d8bf9976d5fadcc8516ad5829eac
parent115085ea0794c0f339be8f9d25505c7f9861d824
[PATCH] taskstats: cleanup ->signal->stats allocation

Allocate ->signal->stats on demand in taskstats_exit(), this allows us to
remove taskstats_tgid_alloc() (the last non-trivial inline) from taskstat's
public interface.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/taskstats_kern.h
kernel/fork.c
kernel/taskstats.c