Re: [PATCH 1/6] mm/damon: move damon_hugetlb_mkold() from vaddr to ops-common

From: SJ Park

Date: Sun Aug 30 2026 - 12:34:19 EST


On Sat, 29 Aug 2026 22:14:02 -0700 Krishna Iyer <kiyer@xxxxxxxxx> wrote:

> damon_hugetlb_mkold() clears the accessed bit of a hugetlb-mapping huge
> PTE and propagates the aging to secondary MMUs via
> mmu_notifier_clear_young(), spanning the whole huge page size. It
> currently lives in vaddr.c, and is thus usable only by the virtual
> address space monitoring operations set.
>
> The physical address space monitoring operations set will need the same
> logic, to support access monitoring of hugetlb-backed memory. Move the
> function to ops-common as-is, with no behavioral change. A follow-up
> change will use it from the folio-granular rmap walkers.

Looks good to me, thank you for this patch!

>
> Assisted-by: Claude:claude-fable-5
> Signed-off-by: Krishna Iyer <kiyer@xxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]