[PATCH] 2.5.48 s390 (11/16): isclean bug.

From: Martin Schwidefsky (schwidefsky@de.ibm.com)
Date: Mon Nov 18 2002 - 14:21:34 EST


Remove the _PAGE_ISCLEAN bit in pte_mkwrite to make pte_mkwrite
work correctly even if it is not followed by a pte_mkdirty.

diff -urN linux-2.5.48/include/asm-s390/pgtable.h linux-2.5.48-s390/include/asm-s390/pgtable.h
--- linux-2.5.48/include/asm-s390/pgtable.h Mon Nov 18 05:29:52 2002
+++ linux-2.5.48-s390/include/asm-s390/pgtable.h Mon Nov 18 20:11:53 2002
@@ -320,7 +320,7 @@
 
 extern inline pte_t pte_mkwrite(pte_t pte)
 {
- pte_val(pte) &= ~_PAGE_RO;
+ pte_val(pte) &= ~(_PAGE_RO | _PAGE_ISCLEAN);
         return pte;
 }
 
diff -urN linux-2.5.48/include/asm-s390x/pgtable.h linux-2.5.48-s390/include/asm-s390x/pgtable.h
--- linux-2.5.48/include/asm-s390x/pgtable.h Mon Nov 18 05:29:32 2002
+++ linux-2.5.48-s390/include/asm-s390x/pgtable.h Mon Nov 18 20:11:53 2002
@@ -339,7 +339,7 @@
 
 extern inline pte_t pte_mkwrite(pte_t pte)
 {
- pte_val(pte) &= ~_PAGE_RO;
+ pte_val(pte) &= ~(_PAGE_RO | _PAGE_ISCLEAN);
         return pte;
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:23 EST