Use correct language for cgroups

Refer to cgroups and the cgroup hierarchy by their correct names.

Bug: 301871933
Change-Id: Ibe65900812e1de3b60f5b7104ae2c9a02a3f8a8c
This commit is contained in:
T.J. Mercier 2023-10-27 17:30:45 +00:00
parent 0ac96fcb1a
commit c2b250bb7e
1 changed files with 1 additions and 1 deletions

View File

@ -3219,7 +3219,7 @@ static MemcgVersion __memcg_version() {
if (!CgroupGetControllerPath("memory", &memcg_path)) {
return MemcgVersion::kNotFound;
}
return CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cgroupv2_path) &&
return CgroupGetControllerPath(CGROUPV2_HIERARCHY_NAME, &cgroupv2_path) &&
cgroupv2_path == memcg_path
? MemcgVersion::kV2
: MemcgVersion::kV1;