Re: [PATCH 3/6] mm/zswap: stop lru list shrinking when encounter warm region

From: Nhat Pham
Date: Thu Feb 01 2024 - 13:13:25 EST


On Thu, Feb 1, 2024 at 7:50 AM Chengming Zhou
<zhouchengming@xxxxxxxxxxxxx> wrote:
>
> When the shrinker encounter an existing folio in swap cache, it means
> we are shrinking into the warmer region. We should terminate shrinking
> if we're in the dynamic shrinker context.
>
> This patch add LRU_STOP to support this, to avoid overshrinking.
>
> Signed-off-by: Chengming Zhou <zhouchengming@xxxxxxxxxxxxx>

Nice!
Acked-by: Nhat Pham <nphamcs@xxxxxxxxx>