Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a72a08a4b61cb8868606a69b744848552e92062b
Commit:     a72a08a4b61cb8868606a69b744848552e92062b
Parent:     3c1df68b848b39270752ff8d4b956cc4a4dce0f6
Author:     Thomas Gleixner <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 30 13:34:07 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 13:34:07 2008 +0100

    x86: cpa: fix split thinko
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 arch/x86/mm/pageattr.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 23f0aa3..a2ee317 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -216,8 +216,12 @@ repeat:
        prot = static_protections(prot, address);
 
        if (level == PG_LEVEL_4K) {
+               WARN_ON_ONCE(pgprot_val(prot) & _PAGE_PSE);
                set_pte_atomic(kpte, pfn_pte(pfn, canon_pgprot(prot)));
        } else {
+               /* Clear the PSE bit for the 4k level pages ! */
+               pgprot_val(prot) = pgprot_val(prot) & ~_PAGE_PSE;
+
                err = split_large_page(kpte, address);
                if (!err)
                        goto repeat;
-
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