aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2011-01-13 18:46:29 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 20:32:38 -0500
commit4e9f64c42d0ba5eb0c78569435ada4c224332ce4 (patch)
tree71df9e94a7f400755bd9ae02ed0c183e429f91cf /mm/page_alloc.c
parentae52a2adb5afa5ac5ec5fb5c7b24777f84b6c926 (diff)
thp: 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> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-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 c18d1f7cff84..2a67c3bd403a 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5618,7 +5618,7 @@ void dump_page(struct page *page)
5618{ 5618{
5619 printk(KERN_ALERT 5619 printk(KERN_ALERT
5620 "page:%p count:%d mapcount:%d mapping:%p index:%#lx\n", 5620 "page:%p count:%d mapcount:%d mapping:%p index:%#lx\n",
5621 page, page_count(page), page_mapcount(page), 5621 page, atomic_read(&page->_count), page_mapcount(page),
5622 page->mapping, page->index); 5622 page->mapping, page->index);
5623 dump_page_flags(page->flags); 5623 dump_page_flags(page->flags);
5624} 5624}