diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-06-02 01:50:09 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-06-28 15:43:08 +0200 |
commit | bc347edfe075f36bada0e1e7aefd62b10fcad4a7 (patch) | |
tree | 2eefd9fa2e6ee552aead057a27faf2d212b804eb /src/core/unit.c | |
parent | core/cgroup: call bpf_firewall_close in cgroup_runtime_free (diff) | |
download | systemd-bc347edfe075f36bada0e1e7aefd62b10fcad4a7.tar.xz systemd-bc347edfe075f36bada0e1e7aefd62b10fcad4a7.zip |
core: unify reset_accounting handling
Since the introduction of CGroupRuntime, there's no need
to call *_reset_accounting in unit_new(), hence make those
static. While at it, refrain from hardcoding default values
in cgroup_runtime_new(), but call the corresponding funcs.
This also corrects the default value of io_accounting_base.
Fixes #33482
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 9d64103aef..f5563c1fe9 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -129,9 +129,6 @@ Unit* unit_new(Manager *m, size_t size) { .burst = 16 }; - unit_reset_memory_accounting_last(u); - unit_reset_io_accounting_last(u); - return u; } |