mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.48 s390 (11/16): isclean bug.
@ 2002-11-18 19:21 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2002-11-18 19:21 UTC (permalink / raw)
  To: linux-kernel, torvalds

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;
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-18 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-18 19:21 [PATCH] 2.5.48 s390 (11/16): isclean bug Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®