diff --git a/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c b/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c index b78a4043da49a..ac2390f8f40b0 100644 --- a/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c +++ b/tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c @@ -164,12 +164,12 @@ static int induce_vmscan(void) int i, err; /* - * Set memory.high for test parent cgroup to 1 MB to throttle + * Set memory.max for test parent cgroup to 1 MB to throttle * allocations and invoke reclaim in children. */ snprintf(size, 128, "%d", MB(1)); - err = write_cgroup_file(cgroups[0].path, "memory.high", size); - if (!ASSERT_OK(err, "write memory.high")) + err = write_cgroup_file(cgroups[0].path, "memory.max", size); + if (!ASSERT_OK(err, "write memory.max")) return err; /* * In every leaf cgroup, run a memory hog for a few seconds to induce @@ -182,7 +182,7 @@ static int induce_vmscan(void) /* Join cgroup in the parent process workdir */ join_parent_cgroup(cgroups[i].path); - /* Allocate more memory than memory.high */ + /* Allocate more memory than memory.max */ alloc_anon(MB(2)); exit(0); } else {