aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-07-25 04:47:41 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 13:53:39 -0400
commit999d9fc1670bc082928b93b11d1f2e0e417d973c (patch)
treee540e7fd2fab970ba2be5e39ac9f8282a373bc24 /include/linux
parent32ecb1f26dd50eeaac4e3f4dea4541c97848e459 (diff)
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 97819efd2333..c0b1747b61a5 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -160,6 +160,7 @@ struct vm_area_struct {
160}; 160};
161 161
162struct core_state { 162struct core_state {
163 int nr_threads;
163 struct completion startup; 164 struct completion startup;
164}; 165};
165 166
@@ -179,7 +180,6 @@ struct mm_struct {
179 atomic_t mm_users; /* How many users with user space? */ 180 atomic_t mm_users; /* How many users with user space? */
180 atomic_t mm_count; /* How many references to "struct mm_struct" (users count as 1) */ 181 atomic_t mm_count; /* How many references to "struct mm_struct" (users count as 1) */
181 int map_count; /* number of VMAs */ 182 int map_count; /* number of VMAs */
182 int core_waiters;
183 struct rw_semaphore mmap_sem; 183 struct rw_semaphore mmap_sem;
184 spinlock_t page_table_lock; /* Protects page tables and some counters */ 184 spinlock_t page_table_lock; /* Protects page tables and some counters */
185 185