cgroup-util: drop handcrafted cg_is_empty(), always check cgroup.events populated field (#37624)

This commit is contained in:
Yu Watanabe
2025-05-27 10:41:56 +09:00
committed by GitHub
8 changed files with 16 additions and 121 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ int show_cgroup_by_path(
if (!k)
return -ENOMEM;
if (!(flags & OUTPUT_SHOW_ALL) && cg_is_empty_recursive(NULL, k) > 0)
if (!(flags & OUTPUT_SHOW_ALL) && cg_is_empty(NULL, k) > 0)
continue;
if (!shown_pids) {