diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-12-06 23:36:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:34 -0500 |
commit | 34ec12349c8a9505adc59d72f92b4595bc2483ff (patch) | |
tree | 2307c825f1a0d8bf9976d5fadcc8516ad5829eac /kernel/fork.c | |
parent | 115085ea0794c0f339be8f9d25505c7f9861d824 (diff) |
[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>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index f37980df1d58..658838148647 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -847,7 +847,6 @@ static inline int copy_signal(unsigned long clone_flags, struct task_struct * ts | |||
847 | if (clone_flags & CLONE_THREAD) { | 847 | if (clone_flags & CLONE_THREAD) { |
848 | atomic_inc(¤t->signal->count); | 848 | atomic_inc(¤t->signal->count); |
849 | atomic_inc(¤t->signal->live); | 849 | atomic_inc(¤t->signal->live); |
850 | taskstats_tgid_alloc(current); | ||
851 | return 0; | 850 | return 0; |
852 | } | 851 | } |
853 | sig = kmem_cache_alloc(signal_cachep, GFP_KERNEL); | 852 | sig = kmem_cache_alloc(signal_cachep, GFP_KERNEL); |