|
@@ -529,6 +529,9 @@ void __mmdrop(struct mm_struct *mm)
|
|
|
mm_free_pgd(mm);
|
|
|
destroy_context(mm);
|
|
|
mmu_notifier_mm_destroy(mm);
|
|
|
+#ifdef CONFIG_TRANSPARENT_HUGEPAGE
|
|
|
+ VM_BUG_ON(mm->pmd_huge_pte);
|
|
|
+#endif
|
|
|
free_mm(mm);
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(__mmdrop);
|
|
@@ -669,6 +672,10 @@ struct mm_struct *dup_mm(struct task_struct *tsk)
|
|
|
mm->token_priority = 0;
|
|
|
mm->last_interval = 0;
|
|
|
|
|
|
+#ifdef CONFIG_TRANSPARENT_HUGEPAGE
|
|
|
+ mm->pmd_huge_pte = NULL;
|
|
|
+#endif
|
|
|
+
|
|
|
if (!mm_init(mm, tsk))
|
|
|
goto fail_nomem;
|
|
|
|