summaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/debug.c')
-rw-r--r--mm/debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/debug.c b/mm/debug.c
index 03c9a13f9f6a..f05b2d5d6481 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -79,9 +79,12 @@ static void dump_flags(unsigned long flags,
79void dump_page_badflags(struct page *page, const char *reason, 79void dump_page_badflags(struct page *page, const char *reason,
80 unsigned long badflags) 80 unsigned long badflags)
81{ 81{
82 pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx\n", 82 pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx",
83 page, atomic_read(&page->_count), page_mapcount(page), 83 page, atomic_read(&page->_count), page_mapcount(page),
84 page->mapping, page->index); 84 page->mapping, page->index);
85 if (PageCompound(page))
86 pr_cont(" compound_mapcount: %d", compound_mapcount(page));
87 pr_cont("\n");
85 BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS); 88 BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS);
86 dump_flags(page->flags, pageflag_names, ARRAY_SIZE(pageflag_names)); 89 dump_flags(page->flags, pageflag_names, ARRAY_SIZE(pageflag_names));
87 if (reason) 90 if (reason)