On Fri, Jun 24, 2022 at 02:23:34PM +0200, Christoph Hellwig wrote:
Since the page_mkwrite address space operation was added, starting with
commit 9637a5efd4fb ("[PATCH] add page_mkwrite() vm_operations method")
in 2006, the kernel does not just dirty random pages without telling
the file system.
It does and there's a history behind the fixup worker. tl;dr it can't be
removed, though every now and then somebody comes and tries to.
On s390 the page status is tracked in two places, hw and in memory and
this needs to be synchronized manually.
On x86_64 it's not a simple reason but it happens as well in some edge
case where the mappings get removed and dirty page is set deep in the
arch mm code. We've been chasing it long time ago, I don't recall exact
details and it's been a painful experience.
If there's been any change on the s390 side or in arch/x86/mm code I
don't know but to be on the safe side, I strongly assume the fixup code
is needed unless proven otherwise.