x86: stricter check in follow_huge_addr()
authorChristoph Lameter <clameter@sgi.com>
Thu, 27 Mar 2008 04:03:04 +0000 (21:03 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 27 Mar 2008 15:08:45 +0000 (16:08 +0100)
commit25e59881f109dc6378ebc463ae4c2de907435de3
treea8fb0090cff8ad34103b47c0a894b39fe41f1013
parentb2ef749720a97053d60605a7456772a1752164cc
x86: stricter check in follow_huge_addr()

The first page of the compound page is determined in follow_huge_addr()
but then PageCompound() only checks if the page is part of a compound page.
PageHead() allows checking if this is indeed the first page of the
compound.

Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/hugetlbpage.c