diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-03-26 21:03:04 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-03-27 16:08:45 +0100 |
commit | 25e59881f109dc6378ebc463ae4c2de907435de3 (patch) | |
tree | a8fb0090cff8ad34103b47c0a894b39fe41f1013 /arch/x86/mm/hugetlbpage.c | |
parent | b2ef749720a97053d60605a7456772a1752164cc (diff) | |
download | op-kernel-dev-25e59881f109dc6378ebc463ae4c2de907435de3.zip op-kernel-dev-25e59881f109dc6378ebc463ae4c2de907435de3.tar.gz |
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>
Diffstat (limited to 'arch/x86/mm/hugetlbpage.c')
-rw-r--r-- | arch/x86/mm/hugetlbpage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c index 4fbafb4..0b3d567 100644 --- a/arch/x86/mm/hugetlbpage.c +++ b/arch/x86/mm/hugetlbpage.c @@ -178,7 +178,7 @@ follow_huge_addr(struct mm_struct *mm, unsigned long address, int write) page = &pte_page(*pte)[vpfn % (HPAGE_SIZE/PAGE_SIZE)]; - WARN_ON(!PageCompound(page)); + WARN_ON(!PageHead(page)); return page; } |