Skip to contentSkip to conversation

2.5.48 s390 (11/16): isclean bug.

PATCH New Martin Schwidefsky 1 participant 1 message Nov 18, 2002

lore
Share & tools
lore
#0 lore raw

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

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

include/asm-s390/pgtable.h +1 -1
diff -urN linux-2.5.48/include/asm-s390/pgtable.h linux-2.5.48-s390/include/asm-s390/pgtable.h
@@ -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;
 }
 
include/asm-s390x/pgtable.h +1 -1
diff -urN linux-2.5.48/include/asm-s390x/pgtable.h linux-2.5.48-s390/include/asm-s390x/pgtable.h
@@ -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;
 }