Skip to content

Commit e6b331a

Browse files
uarif1akpm00
authored andcommitted
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/20240502200529.4193651-2-usamaarif642@gmail.com Signed-off-by: Usama Arif <usamaarif642@gmail.com> Acked-by: Yosry Ahmed <yosryahmed@google.com> Cc: Chengming Zhou <chengming.zhou@linux.dev> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Nhat Pham <nphamcs@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 3974345 commit e6b331a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/testing/selftests/cgroup/test_zswap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ static int test_no_kmem_bypass(const char *root)
364364
trigger_allocation_size = sys_info.totalram / 20;
365365

366366
/* Set up test memcg */
367-
if (cg_write(root, "cgroup.subtree_control", "+memory"))
368-
goto out;
369367
test_group = cg_name(root, "kmem_bypass_test");
370368
if (!test_group)
371369
goto out;

0 commit comments

Comments
 (0)