]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: cpa: remove unnecessary masking of address
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:33:50 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:50 +0000 (13:33 +0100)
virt_to_page does not care about the bits below the page granuality.
So don't mask them.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr_64.c

index b21a874c2dd3b675169b559d276149a9fc4dbaf1..4d172881af7012f5255d6265563ec5ebea99b002 100644 (file)
@@ -148,7 +148,7 @@ __change_page_attr(unsigned long address, unsigned long pfn, pgprot_t prot,
        if (!kpte)
                return 0;
 
-       kpte_page = virt_to_page(((unsigned long)kpte) & PAGE_MASK);
+       kpte_page = virt_to_page(kpte);
        BUG_ON(PageLRU(kpte_page));
        BUG_ON(PageCompound(kpte_page));
        if (pgprot_val(prot) != pgprot_val(ref_prot)) {