Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8e31c2ac1101b09ad6c6d3539b032d312cc3302b
Commit:     8e31c2ac1101b09ad6c6d3539b032d312cc3302b
Parent:     aa65af3f92da39a686c8a3479426d15854fa27ab
Author:     Andi Kleen <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 11 10:50:21 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Tue Feb 19 16:18:29 2008 +0100

    x86: CPA: remove BUG_ON for LRU/Compound pages
    
    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)
    
    [ [EMAIL PROTECTED]: removed unused variable ]
    
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 arch/x86/mm/pageattr.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 3ee1499..e2a74ea 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -513,7 +513,6 @@ static int __change_page_attr(struct cpa_data *cpa, int 
primary)
        unsigned long address = cpa->vaddr;
        int do_split, err;
        unsigned int level;
-       struct page *kpte_page;
        pte_t *kpte, old_pte;
 
 repeat:
@@ -532,10 +531,6 @@ repeat:
                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;
                pgprot_t new_prot = pte_pgprot(old_pte);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to