]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Set the pte dirty if the folio is already dirty
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 30 Jan 2025 23:15:15 +0000 (18:15 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 25 Feb 2025 19:47:20 +0000 (14:47 -0500)
commit3bf8886ea29494a6165b5f395f8723cfe0f58691
tree4bf73fdcf186b06f2bc72ce684d84df7fcdcaecc
parentcc8a0934d099b8153fc880a3588eec4791a7bccb
mm: Set the pte dirty if the folio is already dirty

If the first access to a folio is a read that is then followed by a
write, we can save a page fault.  s390 implemented this in their
mk_pte() in commit abf09bed3cce ("s390/mm: implement software dirty
bits"), but other architectures can also benefit from this.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
arch/s390/include/asm/pgtable.h
mm/memory.c