]> Git Repo - linux.git/commitdiff
selftests: fix the zswap invasive shrink test
authorNhat Pham <[email protected]>
Mon, 5 Feb 2024 22:56:07 +0000 (14:56 -0800)
committerAndrew Morton <[email protected]>
Thu, 22 Feb 2024 23:27:16 +0000 (15:27 -0800)
The zswap no invasive shrink selftest breaks because we rename the zswap
writeback counter (see [1]).  Fix the test.

[1]: https://patchwork.kernel.org/project/linux-kselftest/patch/20231205193307.2432803[email protected]/

Link: https://lkml.kernel.org/r/[email protected]
Fixes: a697dc2be925 ("selftests: cgroup: update per-memcg zswap writeback selftest")
Signed-off-by: Nhat Pham <[email protected]>
Acked-by: Yosry Ahmed <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Zefan Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
tools/testing/selftests/cgroup/test_zswap.c

index 47fdaa146443001491dc0ec9b56cf5e0677b49e6..32ce975b21d1f535db9d179a29e078344b21553f 100644 (file)
@@ -52,7 +52,7 @@ static int get_zswap_stored_pages(size_t *value)
 
 static int get_cg_wb_count(const char *cg)
 {
-       return cg_read_key_long(cg, "memory.stat", "zswp_wb");
+       return cg_read_key_long(cg, "memory.stat", "zswpwb");
 }
 
 static long get_zswpout(const char *cgroup)
This page took 0.049481 seconds and 4 git commands to generate.