cgroup-util: drop 'controller' argument from cg_get_path()

The argument is not used anymore. Let's drop it.
This commit is contained in:
Yu Watanabe
2025-11-17 21:31:50 +09:00
parent 5d397dc7f4
commit a8156588fa
19 changed files with 50 additions and 53 deletions
+2 -2
View File
@@ -5579,7 +5579,7 @@ int exec_invoke(
if (is_pressure_supported() > 0) {
if (cgroup_context_want_memory_pressure(cgroup_context)) {
r = cg_get_path("memory", params->cgroup_path, "memory.pressure", &memory_pressure_path);
r = cg_get_path(params->cgroup_path, "memory.pressure", &memory_pressure_path);
if (r < 0) {
*exit_status = EXIT_MEMORY;
return log_oom();
@@ -5597,7 +5597,7 @@ int exec_invoke(
* memory_pressure_path != NULL in the conditional below. */
if (memory_pressure_path && needs_sandboxing && exec_needs_cgroup_namespace(context)) {
memory_pressure_path = mfree(memory_pressure_path);
r = cg_get_path("memory", "/", "memory.pressure", &memory_pressure_path);
r = cg_get_path("/", "memory.pressure", &memory_pressure_path);
if (r < 0) {
*exit_status = EXIT_MEMORY;
return log_oom();