coredump: move mm->core_waiters into struct core_state
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 25 Jul 2008 08:47:41 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:39 +0000 (10:53 -0700)
commit999d9fc1670bc082928b93b11d1f2e0e417d973c
treee540e7fd2fab970ba2be5e39ac9f8282a373bc24
parent32ecb1f26dd50eeaac4e3f4dea4541c97848e459
coredump: move mm->core_waiters into struct core_state

Move mm->core_waiters into "struct core_state" allocated on stack.  This
shrinks mm_struct a little bit and allows further changes.

This patch mostly does s/core_waiters/core_state.  The only essential
change is that coredump_wait() must clear mm->core_state before return.

The coredump_wait()'s path is uglified and .text grows by 30 bytes, this
is fixed by the next patch.

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
include/linux/mm_types.h
kernel/exit.c
kernel/fork.c
kernel/signal.c