aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pageattr_64.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-30 07:33:50 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:50 -0500
commita3ae91b0a02a4ca0088f30d572c848f5d522573a (patch)
treeda158b5342c753e0062e4f751211e3eaf0d1395c /arch/x86/mm/pageattr_64.c
parent5b016432a768d94c707aee02a202c95d163f27c4 (diff)
x86: cpa: remove unnecessary masking of address
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>
Diffstat (limited to 'arch/x86/mm/pageattr_64.c')
-rw-r--r--arch/x86/mm/pageattr_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/pageattr_64.c b/arch/x86/mm/pageattr_64.c
index b21a874c2dd3..4d172881af70 100644
--- a/arch/x86/mm/pageattr_64.c
+++ b/arch/x86/mm/pageattr_64.c
@@ -148,7 +148,7 @@ __change_page_attr(unsigned long address, unsigned long pfn, pgprot_t prot,
148 if (!kpte) 148 if (!kpte)
149 return 0; 149 return 0;
150 150
151 kpte_page = virt_to_page(((unsigned long)kpte) & PAGE_MASK); 151 kpte_page = virt_to_page(kpte);
152 BUG_ON(PageLRU(kpte_page)); 152 BUG_ON(PageLRU(kpte_page));
153 BUG_ON(PageCompound(kpte_page)); 153 BUG_ON(PageCompound(kpte_page));
154 if (pgprot_val(prot) != pgprot_val(ref_prot)) { 154 if (pgprot_val(prot) != pgprot_val(ref_prot)) {