]> www.infradead.org Git - users/willy/xarray.git/commit
selftests: test_zswap: add test for hierarchical zswap.writeback
authorMike Yuan <me@yhndnzj.com>
Fri, 23 Aug 2024 16:27:09 +0000 (16:27 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:47 +0000 (21:15 -0700)
commitfd06ce2ce4c1f93e3d5d7d2640672ccb1a94cce3
treea14be345442599f1c0a821bac777e4daaef15949
parent20a5532ffa53d6ecf41ded920a7b0ff9c65a7dcf
selftests: test_zswap: add test for hierarchical zswap.writeback

Ensure that zswap.writeback check goes up the cgroup tree, i.e.  is
hierarchical.  Create a subcgroup which has zswap.writeback set to 1, and
the upper hierarchy's restrictions shall apply.

Link: https://lkml.kernel.org/r/20240823162506.12117-2-me@yhndnzj.com
Signed-off-by: Mike Yuan <me@yhndnzj.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Michal Koutný <mkoutny@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/cgroup/test_zswap.c