diff options
| author | Andi Kleen <ak@suse.de> | 2008-04-28 05:12:37 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:20 -0400 |
| commit | 7edf85aa3c00df1e86e82f649c41efa0dd8a7218 (patch) | |
| tree | 9f6ee8e78076a55031642a1660ce9e1760ad79fb /include/linux | |
| parent | b5ee5befa75e33e55d34584ad10286c5005cb1de (diff) | |
mm: save some bytes in mm_struct by filling holes on 64bit
Save some bytes in mm_struct by filling holes
Putting int values together for better packing on 64bit shrinks sizeof(struct
mm_struct) from 776 bytes to 764 bytes.
Signed-off-by: Andi Kleen <ak@suse.de>
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index af190ceab971..29adaa781cb6 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h | |||
| @@ -172,6 +172,7 @@ struct mm_struct { | |||
| 172 | atomic_t mm_users; /* How many users with user space? */ | 172 | atomic_t mm_users; /* How many users with user space? */ |
| 173 | atomic_t mm_count; /* How many references to "struct mm_struct" (users count as 1) */ | 173 | atomic_t mm_count; /* How many references to "struct mm_struct" (users count as 1) */ |
| 174 | int map_count; /* number of VMAs */ | 174 | int map_count; /* number of VMAs */ |
| 175 | int core_waiters; | ||
| 175 | struct rw_semaphore mmap_sem; | 176 | struct rw_semaphore mmap_sem; |
| 176 | spinlock_t page_table_lock; /* Protects page tables and some counters */ | 177 | spinlock_t page_table_lock; /* Protects page tables and some counters */ |
| 177 | 178 | ||
| @@ -216,11 +217,10 @@ struct mm_struct { | |||
| 216 | unsigned long flags; /* Must use atomic bitops to access the bits */ | 217 | unsigned long flags; /* Must use atomic bitops to access the bits */ |
| 217 | 218 | ||
| 218 | /* coredumping support */ | 219 | /* coredumping support */ |
| 219 | int core_waiters; | ||
| 220 | struct completion *core_startup_done, core_done; | 220 | struct completion *core_startup_done, core_done; |
| 221 | 221 | ||
| 222 | /* aio bits */ | 222 | /* aio bits */ |
| 223 | rwlock_t ioctx_list_lock; | 223 | rwlock_t ioctx_list_lock; /* aio lock */ |
| 224 | struct kioctx *ioctx_list; | 224 | struct kioctx *ioctx_list; |
| 225 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 225 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR |
| 226 | struct mem_cgroup *mem_cgroup; | 226 | struct mem_cgroup *mem_cgroup; |
