_PAGE_HWWRITE missing in pte_mkdirty()?

Paul Mackerras paulus at samba.org
Sun Apr 27 09:51:28 EST 2003


Joakim Tjernlund writes:

> OK, I wasn't aware that you can have dirty pages without _PAGE_RW.

Yes, think about what happens if a process has a writable dirty page
(in a private or anonymous mapping) and the process does a fork.  The
page becomes copy-on-write, so we have to make it non-writable, but it
is still dirty.

Whether the kernel actually ever calls pte_mkdirty on a non-writable
page is a different question, of course. :)

Paul.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list