summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2010-11-02 21:46:08 +0100
committerAndrea Arcangeli <aarcange@redhat.com>2010-11-02 20:47:33 +0000
commita8313dc70da235ee675b196e8c83e0f2e7a14531 (patch)
treeb511042a5d7f714ea1f0e92d73397d1f69615506 /mm
parent9b695447fd639cea2a4d003271f5b6b6c0201216 (diff)
fix bad_page to show the real reason the page is bad
page_count shows the count of the head page, but the actual check is done on the tail page, so show what is really being checked. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Acked-by: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mel@csn.ul.ie>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 07a654486f75..01b4e0eb1600 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5564,7 +5564,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);
}