From: Oleg Nesterov Date: Fri, 25 Jul 2008 08:47:42 +0000 (-0700) Subject: coredump: simplify core_state->nr_threads calculation X-Git-Tag: v2.6.27-rc1~342 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd9c249128a59e8e833d454a784b0cbd338d468;p=pandora-kernel.git 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 Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed