thp: fix bad_page to show the real reason the page is bad
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:29 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:38 +0000 (17:32 -0800)
commit4e9f64c42d0ba5eb0c78569435ada4c224332ce4
tree71df9e94a7f400755bd9ae02ed0c183e429f91cf
parentae52a2adb5afa5ac5ec5fb5c7b24777f84b6c926
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>
mm/page_alloc.c