diff options
author | Usama Arif <[email protected]> | 2024-05-02 21:04:26 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-05-11 15:41:35 -0700 |
commit | e6b331ab0a716c1d9273383ae59c5b2eea5ac00d (patch) | |
tree | 9ad265fc18831f042efa7bc8d460f24e99bc14ab | |
parent | 3974345f269c2701d4cad7bd3f2ed4445bdbbfbb (diff) |
selftests: cgroup: remove redundant enabling of memory controller
Memory controller is already enabled in main which invokes the test, hence
this does not need to be done in test_no_kmem_bypass.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Usama Arif <[email protected]>
Acked-by: Yosry Ahmed <[email protected]>
Cc: Chengming Zhou <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Nhat Pham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | tools/testing/selftests/cgroup/test_zswap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/testing/selftests/cgroup/test_zswap.c b/tools/testing/selftests/cgroup/test_zswap.c index f0e488ed90d8..0f1023813c03 100644 --- a/tools/testing/selftests/cgroup/test_zswap.c +++ b/tools/testing/selftests/cgroup/test_zswap.c @@ -364,8 +364,6 @@ static int test_no_kmem_bypass(const char *root) trigger_allocation_size = sys_info.totalram / 20; /* Set up test memcg */ - if (cg_write(root, "cgroup.subtree_control", "+memory")) - goto out; test_group = cg_name(root, "kmem_bypass_test"); if (!test_group) goto out; |