Re: [PATCH v11 2/8] mm: introduce clear_pages() and clear_user_pages()
From: David Hildenbrand (Red Hat)
Date: Wed Jan 07 2026 - 17:07:39 EST
On 1/7/26 08:20, Ankur Arora wrote:
Introduce clear_pages(), to be overridden by architectures that
support more efficient clearing of consecutive pages.
Also introduce clear_user_pages(), however, we will not expect this
function to be overridden anytime soon.
As we do for clear_user_page(), define clear_user_pages() only if the
architecture does not define clear_user_highpage().
That is because if the architecture does define clear_user_highpage(),
then it likely needs some flushing magic when clearing user pages or
highpages. This means we can get away without defining clear_user_pages(),
since, much like its single page sibling, its only potential user is the
generic clear_user_highpages() which should instead be using
clear_user_highpage().
Signed-off-by: Ankur Arora <ankur.a.arora@xxxxxxxxxx>
---
Acked-by: David Hildenbrand (Red Hat) <david@xxxxxxxxxx>
--
Cheers
David