X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=mm%2Fdebug.c;h=74c7cae4f6837dcb5a599df800e7300ff851519c;hb=78bbf153fa96e5e40234b7b05567602535645460;hp=8865bfb41b0b6e514a8f297c335a8682763bad6a;hpb=004cb62efd5e9e4772efb46b49c16fa2618ecf3e;p=cascardo%2Flinux.git diff --git a/mm/debug.c b/mm/debug.c index 8865bfb41b0b..74c7cae4f683 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -42,9 +42,11 @@ const struct trace_print_flags vmaflag_names[] = { void __dump_page(struct page *page, const char *reason) { + int mapcount = PageSlab(page) ? 0 : page_mapcount(page); + pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx", - page, page_ref_count(page), page_mapcount(page), - page->mapping, page->index); + page, page_ref_count(page), mapcount, + page->mapping, page_to_pgoff(page)); if (PageCompound(page)) pr_cont(" compound_mapcount: %d", compound_mapcount(page)); pr_cont("\n");