mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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>
This commit is contained in:
parent
ae52a2adb5
commit
4e9f64c42d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user