|
@@ -40,8 +40,7 @@ const struct trace_print_flags vmaflag_names[] = {
|
|
|
{0, NULL}
|
|
|
};
|
|
|
|
|
|
-void dump_page_badflags(struct page *page, const char *reason,
|
|
|
- unsigned long badflags)
|
|
|
+void __dump_page(struct page *page, const char *reason)
|
|
|
{
|
|
|
pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx",
|
|
|
page, atomic_read(&page->_count), page_mapcount(page),
|
|
@@ -50,15 +49,12 @@ void dump_page_badflags(struct page *page, const char *reason,
|
|
|
pr_cont(" compound_mapcount: %d", compound_mapcount(page));
|
|
|
pr_cont("\n");
|
|
|
BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS + 1);
|
|
|
+
|
|
|
pr_emerg("flags: %#lx(%pGp)\n", page->flags, &page->flags);
|
|
|
|
|
|
if (reason)
|
|
|
pr_alert("page dumped because: %s\n", reason);
|
|
|
|
|
|
- badflags &= page->flags;
|
|
|
- if (badflags)
|
|
|
- pr_alert("bad because of flags: %#lx(%pGp)\n", badflags,
|
|
|
- &badflags);
|
|
|
#ifdef CONFIG_MEMCG
|
|
|
if (page->mem_cgroup)
|
|
|
pr_alert("page->mem_cgroup:%p\n", page->mem_cgroup);
|
|
@@ -67,7 +63,7 @@ void dump_page_badflags(struct page *page, const char *reason,
|
|
|
|
|
|
void dump_page(struct page *page, const char *reason)
|
|
|
{
|
|
|
- dump_page_badflags(page, reason, 0);
|
|
|
+ __dump_page(page, reason);
|
|
|
dump_page_owner(page);
|
|
|
}
|
|
|
EXPORT_SYMBOL(dump_page);
|