mm: do not use mm->nr_pmds on !MMU configurations
[deliverable/linux.git] / kernel / fork.c
index 66e19c251581d1ddf52090bc37a23c645d19dd80..cf65139615a0d38e3fef37ee3a6e2e270c01ccaf 100644 (file)
@@ -555,9 +555,7 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
        INIT_LIST_HEAD(&mm->mmlist);
        mm->core_state = NULL;
        atomic_long_set(&mm->nr_ptes, 0);
-#ifndef __PAGETABLE_PMD_FOLDED
-       atomic_long_set(&mm->nr_pmds, 0);
-#endif
+       mm_nr_pmds_init(mm);
        mm->map_count = 0;
        mm->locked_vm = 0;
        mm->pinned_vm = 0;
This page took 0.024709 seconds and 5 git commands to generate.