selftests: cgroup: remove redundant enabling of memory controller
authorUsama Arif <usamaarif642@gmail.com>
Thu, 2 May 2024 20:04:26 +0000 (21:04 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 11 May 2024 22:41:35 +0000 (15:41 -0700)
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>
tools/testing/selftests/cgroup/test_zswap.c

index f0e488ed90d8959dc5edb83da057741ad6608384..0f1023813c03417e694919b266a3abaed9566a15 100644 (file)
@@ -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;