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.
This commit is contained in:
Ivan Shapovalov
2024-09-21 05:45:36 +02:00
parent 146b44d0a0
commit a0020ad84b
4 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -2385,7 +2385,7 @@ static int unit_log_resources(Unit *u) {
assert(io_fields[k].journal_field);
(void) unit_get_io_accounting(u, k, k > 0, &value);
(void) unit_get_io_accounting(u, k, &value);
if (value == UINT64_MAX)
continue;