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

Martin Schwidefsky (schwidefsky@de.ibm.com)
Mon, 18 Nov 2002 20:21:34 +0100


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/