Re: [PATCH v10 4/8] highmem: do range clearing in clear_user_highpages()
From: David Hildenbrand (Red Hat)
Date: Thu Dec 18 2025 - 02:17:49 EST
On 12/15/25 21:49, Ankur Arora wrote:
Use the range clearing primitive clear_user_pages() when clearing
contiguous pages in clear_user_highpages().
We can safely do that when we have !CONFIG_HIGHMEM and when the
architecture does not have clear_user_highpage.
The first is necessary because not doing intermediate maps for
pages lets contiguous page ranges stay contiguous. The second,
because if the architecture has clear_user_highpage(), it likely
needs flushing magic when clearing the page, magic that we aren't
privy to.
Signed-off-by: Ankur Arora <ankur.a.arora@xxxxxxxxxx>
---
Can't you squash #4 into #2 if you move #3 in front of them? Or is there a dependency with #2 that I am missing?
--
Cheers
David