Re: [PATCH v5 3/5] arm64: mm: support batch clearing of the young flag for large folios
From: David Hildenbrand (Arm)
Date: Mon Feb 09 2026 - 04:02:23 EST
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@xxxxxxxxxxxxxxxxx>
---
Nothing jumped at me :) Reusing contpte_align_addr_ptep() makes it a lot clearer.
Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David