]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/mm/pageattr.c
x86: CPA: remove BUG_ON for LRU/Compound pages
[linux-2.6-omap-h63xx.git] / arch / x86 / mm / pageattr.c
index 3ee14996c829fd4da8571c3ce8149cd36b6017ae..e2a74ea11a5309ec4e8181f26bb8b62271ec0d15 100644 (file)
@@ -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);