thp: fix bad_page to show the real reason the page is bad
[linux-2.6.git] / mm / page_alloc.c
index c18d1f7..2a67c3b 100644 (file)
@@ -5618,7 +5618,7 @@ void dump_page(struct page *page)
 {
        printk(KERN_ALERT
               "page:%p count:%d mapcount:%d mapping:%p index:%#lx\n",
-               page, page_count(page), page_mapcount(page),
+               page, atomic_read(&page->_count), page_mapcount(page),
                page->mapping, page->index);
        dump_page_flags(page->flags);
 }