diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index e2ff11f8c1b0..25caa02e2eac 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -198,8 +198,6 @@ static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm) | |||
198 | mm->free_area_cache = oldmm->mmap_base; | 198 | mm->free_area_cache = oldmm->mmap_base; |
199 | mm->cached_hole_size = ~0UL; | 199 | mm->cached_hole_size = ~0UL; |
200 | mm->map_count = 0; | 200 | mm->map_count = 0; |
201 | set_mm_counter(mm, rss, 0); | ||
202 | set_mm_counter(mm, anon_rss, 0); | ||
203 | cpus_clear(mm->cpu_vm_mask); | 201 | cpus_clear(mm->cpu_vm_mask); |
204 | mm->mm_rb = RB_ROOT; | 202 | mm->mm_rb = RB_ROOT; |
205 | rb_link = &mm->mm_rb.rb_node; | 203 | rb_link = &mm->mm_rb.rb_node; |
@@ -323,6 +321,8 @@ static struct mm_struct * mm_init(struct mm_struct * mm) | |||
323 | INIT_LIST_HEAD(&mm->mmlist); | 321 | INIT_LIST_HEAD(&mm->mmlist); |
324 | mm->core_waiters = 0; | 322 | mm->core_waiters = 0; |
325 | mm->nr_ptes = 0; | 323 | mm->nr_ptes = 0; |
324 | set_mm_counter(mm, rss, 0); | ||
325 | set_mm_counter(mm, anon_rss, 0); | ||
326 | spin_lock_init(&mm->page_table_lock); | 326 | spin_lock_init(&mm->page_table_lock); |
327 | rwlock_init(&mm->ioctx_list_lock); | 327 | rwlock_init(&mm->ioctx_list_lock); |
328 | mm->ioctx_list = NULL; | 328 | mm->ioctx_list = NULL; |