aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 1499607e4da2..f78f50ba6cb2 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -529,6 +529,9 @@ void __mmdrop(struct mm_struct *mm)
529 mm_free_pgd(mm); 529 mm_free_pgd(mm);
530 destroy_context(mm); 530 destroy_context(mm);
531 mmu_notifier_mm_destroy(mm); 531 mmu_notifier_mm_destroy(mm);
532#ifdef CONFIG_TRANSPARENT_HUGEPAGE
533 VM_BUG_ON(mm->pmd_huge_pte);
534#endif
532 free_mm(mm); 535 free_mm(mm);
533} 536}
534EXPORT_SYMBOL_GPL(__mmdrop); 537EXPORT_SYMBOL_GPL(__mmdrop);
@@ -669,6 +672,10 @@ struct mm_struct *dup_mm(struct task_struct *tsk)
669 mm->token_priority = 0; 672 mm->token_priority = 0;
670 mm->last_interval = 0; 673 mm->last_interval = 0;
671 674
675#ifdef CONFIG_TRANSPARENT_HUGEPAGE
676 mm->pmd_huge_pte = NULL;
677#endif
678
672 if (!mm_init(mm, tsk)) 679 if (!mm_init(mm, tsk))
673 goto fail_nomem; 680 goto fail_nomem;
674 681