Re: [PATCH v7 12/19] mm/damon: convert to LRU refs based operations for MGLRU

From: Lian Wang

Date: Thu Dec 03 2026 - 04:55:11 EST


Hi Kairui,

> Reset the count instead under MGLRU, with folio_clear_lru_refs(), which
> also clears PG_young.

Makes sense. Clearing only PG_referenced can leave a nonzero refs count
under MGLRU. Using folio_clear_lru_refs() resets the full count and keeps
the PG_young clearing. LGTM.

Reviewed-by: Lian Wang <lianux.mm@xxxxxxxxx>

Thanks,
Lian