[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0803262101060.2683@schroedinger.engr.sgi.com>
Date: Wed, 26 Mar 2008 21:03:04 -0700 (PDT)
From: Christoph Lameter <clameter@....com>
To: Ingo Molnar <mingo@...e.hu>
cc: linux-kernel@...r.kernel.org, Jeremy Fitzhardinge <jeremy@...p.org>
Subject: [x86] Stricter check in follow_huge_addr()
From: Christoph Lameter <clameter@....com>
Subject: Compound Pages: 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@...p.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Signed-off-by: Christoph Lameter <clameter@....com>
---
arch/x86/mm/hugetlbpage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.25-rc5-mm1/arch/x86/mm/hugetlbpage.c
===================================================================
--- linux-2.6.25-rc5-mm1.orig/arch/x86/mm/hugetlbpage.c 2008-03-26 20:43:56.796667401 -0700
+++ linux-2.6.25-rc5-mm1/arch/x86/mm/hugetlbpage.c 2008-03-26 20:44:55.526669888 -0700
@@ -178,7 +178,7 @@ follow_huge_addr(struct mm_struct *mm, u
page = &pte_page(*pte)[vpfn % (HPAGE_SIZE/PAGE_SIZE)];
- WARN_ON(!PageCompound(page));
+ WARN_ON(!PageHead(page));
return page;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists