Re: [PATCH v3 4/4] selftests/cgroup: Add tests for zswap proactive writeback
From: Nhat Pham
Date: Fri May 29 2026 - 16:24:10 EST
On Tue, May 26, 2026 at 4:46 AM Hao Jia <jiahao.kernel@xxxxxxxxx> wrote:
>
> From: Hao Jia <jiahao1@xxxxxxxxxxx>
>
> Add test_zswap_proactive_writeback() to cover the new memory.reclaim
> "zswap_writeback_only" key. The test populates a memory cgroup zswap
> pool, triggers proactive writeback, and verifies the behavior by
> observing the change in zswpwb_proactive. Invalid input combinations
> are also covered.
>
> Extend test_zswap_writeback_one() to assert that the existing
> non-proactive writeback path leaves zswpwb_proactive at zero.
>
> Signed-off-by: Hao Jia <jiahao1@xxxxxxxxxxx>
LGTM.
Reviewed-by: Nhat Pham <nphamcs@xxxxxxxxx>