Re: [PATCH v5 03/17] mm/mglru: make generation page counters atomic
From: Lian Wang
Date: Sun Nov 22 2026 - 08:15:07 EST
On Thu, 19 Nov 2026 05:03:35 +0800 Kairui Song <kasong@xxxxxxxxxxx> wrote:
> From: Kairui Song <kasong@xxxxxxxxxxx>
>
> No feature change, convert them to atomic so we can update them without
> holding the LRU lock. A temporary underflow is fine: readers clamp a
> negative value to zero, and the counters only need to be eventually
> consistent.
>
> Tested-by: Zhao Zhenzhuo <zhaozhengzhuo@xxxxxxxxxxxxx>
> Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>
LGTM,
Reviewed-by: Lian Wang <lianux.mm@xxxxxxxxx>
> ---
> include/linux/mm_inline.h | 6 ++----
> include/linux/mmzone.h | 2 +-
> mm/vmscan.c | 26 +++++++++++++-------------
> mm/vmscan.h | 2 +-
> 4 files changed, 17 insertions(+), 19 deletions(-)