iommu/io-pgtable-arm: Add built time dependency
[cascardo/linux.git] / kernel / fork.c
index 66e19c2..cf65139 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;