summaryrefslogtreecommitdiffstats
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2024-09-20 17:02:13 +0200
committerIvan Shapovalov <intelfx@intelfx.name>2024-09-21 05:45:36 +0200
commita0020ad84bb092fc72cde7dca5784a0a4e613fd7 (patch)
tree187500e90748a4dabf77a913e01beac8dc70264e /src/core/cgroup.h
parentsd-ipv4acd: fix assertion triggered when an ARP received in STARTED state (diff)
downloadsystemd-a0020ad84bb092fc72cde7dca5784a0a4e613fd7.tar.xz
systemd-a0020ad84bb092fc72cde7dca5784a0a4e613fd7.zip
core/cgroup: drop `allow_cache` parameter in `unit_get_io_accounting()`
The name of the parameter is misleading and it does not save us much work because it is not used during regular unit property queries. It is only used during unit_log_resources(), and the cgroup is already dead by that point so it won't be read anyway.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 1c5c1f75ab..7525da728e 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -481,7 +481,7 @@ int unit_get_memory_current(Unit *u, uint64_t *ret);
int unit_get_memory_accounting(Unit *u, CGroupMemoryAccountingMetric metric, uint64_t *ret);
int unit_get_tasks_current(Unit *u, uint64_t *ret);
int unit_get_cpu_usage(Unit *u, nsec_t *ret);
-int unit_get_io_accounting(Unit *u, CGroupIOAccountingMetric metric, bool allow_cache, uint64_t *ret);
+int unit_get_io_accounting(Unit *u, CGroupIOAccountingMetric metric, uint64_t *ret);
int unit_get_ip_accounting(Unit *u, CGroupIPAccountingMetric metric, uint64_t *ret);
int unit_get_effective_limit(Unit *u, CGroupLimitType type, uint64_t *ret);