[PATCH] [6/8] CPA: Remove BUG_ON for LRU/Compound pages

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <tglx@...>, <mingo@...>, <linux-kernel@...>
Date: Monday, February 11, 2008 - 5:50 am

New implementation does not use lru for anything so there is no need
to reject pages that are in the LRU. Similar for compound pages (which
were checked because they also use page->lru)

Signed-off-by: Andi Kleen <ak@suse.de>

---
 arch/x86/mm/pageattr.c |    5 -----
 1 file changed, 5 deletions(-)

Index: linux/arch/x86/mm/pageattr.c
===================================================================
--- linux.orig/arch/x86/mm/pageattr.c
+++ linux/arch/x86/mm/pageattr.c
@@ -545,7 +545,6 @@ static int __change_page_attr(unsigned l
 {
 	int do_split, err;
 	unsigned int level;
-	struct page *kpte_page;
 	pte_t *kpte;
 
 repeat:
@@ -553,10 +552,6 @@ repeat:
 	if (!kpte)
 		return -EINVAL;
 
-	kpte_page = virt_to_page(kpte);
-	BUG_ON(PageLRU(kpte_page));
-	BUG_ON(PageCompound(kpte_page));
-
 	if (level == PG_LEVEL_4K) {
 		pte_t new_pte, old_pte = *kpte;
 		pgprot_t new_prot = pte_pgprot(old_pte);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [0/8] Misc CPA patchkit, Andi Kleen, (Mon Feb 11, 5:50 am)
Re: [PATCH] [7/8] CPA: Don't flush caches on CPUs that suppo..., Arjan van de Ven, (Mon Feb 11, 11:04 am)
Re: [PATCH] [7/8] CPA: Don't flush caches on CPUs that suppo..., Arjan van de Ven, (Mon Feb 11, 11:21 am)
[PATCH] [6/8] CPA: Remove BUG_ON for LRU/Compound pages, Andi Kleen, (Mon Feb 11, 5:50 am)
Re: [PATCH] [6/8] CPA: Remove BUG_ON for LRU/Compound pages, Thomas Gleixner, (Sun Feb 17, 10:07 am)
[PATCH] [1/8] CPA: Remove my copyright notice, Andi Kleen, (Mon Feb 11, 5:50 am)
Re: [PATCH] [1/8] CPA: Remove my copyright notice, Thomas Gleixner, (Mon Feb 11, 8:42 pm)