diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index c99098c52641..66e19c251581 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -606,6 +606,14 @@ static void check_mm(struct mm_struct *mm) | |||
606 | printk(KERN_ALERT "BUG: Bad rss-counter state " | 606 | printk(KERN_ALERT "BUG: Bad rss-counter state " |
607 | "mm:%p idx:%d val:%ld\n", mm, i, x); | 607 | "mm:%p idx:%d val:%ld\n", mm, i, x); |
608 | } | 608 | } |
609 | |||
610 | if (atomic_long_read(&mm->nr_ptes)) | ||
611 | pr_alert("BUG: non-zero nr_ptes on freeing mm: %ld\n", | ||
612 | atomic_long_read(&mm->nr_ptes)); | ||
613 | if (mm_nr_pmds(mm)) | ||
614 | pr_alert("BUG: non-zero nr_pmds on freeing mm: %ld\n", | ||
615 | mm_nr_pmds(mm)); | ||
616 | |||
609 | #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !USE_SPLIT_PMD_PTLOCKS | 617 | #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !USE_SPLIT_PMD_PTLOCKS |
610 | VM_BUG_ON_MM(mm->pmd_huge_pte, mm); | 618 | VM_BUG_ON_MM(mm->pmd_huge_pte, mm); |
611 | #endif | 619 | #endif |