]> git.baikalelectronics.ru Git - kernel.git/commit
coredump: simplify core_state->nr_threads calculation
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 25 Jul 2008 08:47:42 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:39 +0000 (10:53 -0700)
commit227f51d34df93d5adb862ed4c12095effc474812
tree54adf775bdd63fd55fc52b5ac70130a17058d866
parentf55cccfaa20dbbaa65ffcde71a220011b6075212
coredump: simplify core_state->nr_threads calculation

Change zap_process() to return int instead of incrementing
mm->core_state->nr_threads directly.  Change zap_threads() to set
mm->core_state only on success.

This patch restores the original size of .text, and more importantly now
->nr_threads is used in two places only.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c