Re: [PATCH v5 02/17] mm/memcontrol: allow update of LRU statistic without holding LRU lock

From: Lian Wang

Date: Sun Nov 22 2026 - 07:44:20 EST


On Thu, 19 Nov 2026 05:03:34 +0800 Kairui Song <kasong@xxxxxxxxxxx> wrote:
> From: Kairui Song <kasong@xxxxxxxxxxx>
>
> To enable moving file pages in folio_mark_accessed directly and lazily
> for MGLRU, allow updating the LRU statistic atomically without holding a
> lock. It may cause temporary counter underflow, which should be fine as
> the counter is eventually consistent and only serves as an estimate.
>
> Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>

LGTM,

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

> ---
> include/linux/mm_inline.h | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)