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

From: Barry Song

Date: Thu Nov 19 2026 - 14:44:15 EST


On Thu, Nov 19, 2026 at 5:03 AM Kairui Song via B4 Relay
<devnull+kasong.tencent.com@xxxxxxxxxx> 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: Barry Song <baohua@xxxxxxxxxx>

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