[PATCH v5 3/5] arm64: mm: support batch clearing of the young flag for large folios

David Hildenbrand (Arm) david at kernel.org
Mon Feb 9 01:02:08 PST 2026


On 12/26/25 07:07, Baolin Wang wrote:
> Currently, contpte_ptep_test_and_clear_young() and contpte_ptep_clear_flush_young()
> only clear the young flag and flush TLBs for PTEs within the contiguous range.
> To support batch PTE operations for other sized large folios in the following
> patches, adding a new parameter to specify the number of PTEs that map consecutive
> pages of the same large folio in a single VMA and a single page table.
> 
> While we are at it, rename the functions to maintain consistency with other
> contpte_*() functions.
> 
> Signed-off-by: Baolin Wang <baolin.wang at linux.alibaba.com>
> ---

Nothing jumped at me :) Reusing contpte_align_addr_ptep() makes it a lot 
clearer.

Reviewed-by: David Hildenbrand (Arm) <david at kernel.org>

-- 
Cheers,

David



More information about the linux-arm-kernel mailing list