On Wed, 12 Feb 2025 13:44:58 +0100 Alexander Gordeev <agordeev@xxxxxxxxxxxxx> wrote: [...] > The above is however not exactly the same, since set_pte_range() -> set_ptes() > dirtyfies all PTEs in a folio - unlike the current s390 implementation, which > dirtyfies a single PTE based on its struct page flag. I have not looked enough into this specific matter to actually have an opinion, but I just want to quickly point out that in the next couple of years struct page as we know it will go away, and flags will only be per-folio anyway. For more details, see this presentation by Matthew Wilcox: https://fosdem.org/2025/schedule/event/fosdem-2025-4860-shrinking-memmap/ so starting to do things per-folio instead of per-page is a lot more future-proof. [...]