|
@@ -426,6 +426,7 @@ static struct mm_struct * mm_init(struct mm_struct * mm, struct task_struct *p)
|
|
init_rwsem(&mm->mmap_sem);
|
|
init_rwsem(&mm->mmap_sem);
|
|
INIT_LIST_HEAD(&mm->mmlist);
|
|
INIT_LIST_HEAD(&mm->mmlist);
|
|
mm->flags = (current->mm) ? current->mm->flags : default_dump_filter;
|
|
mm->flags = (current->mm) ? current->mm->flags : default_dump_filter;
|
|
|
|
+ mm->oom_adj = (current->mm) ? current->mm->oom_adj : 0;
|
|
mm->core_state = NULL;
|
|
mm->core_state = NULL;
|
|
mm->nr_ptes = 0;
|
|
mm->nr_ptes = 0;
|
|
set_mm_counter(mm, file_rss, 0);
|
|
set_mm_counter(mm, file_rss, 0);
|