]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/cgroup: cache the last memory usage values before destroying cgroup
authorMike Yuan <me@yhndnzj.com>
Sat, 9 Dec 2023 12:10:31 +0000 (20:10 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 9 Dec 2023 12:42:48 +0000 (20:42 +0800)
commitad009380e1cbee8cf6e965f1a9b5671bd74ac146
treedfe4594d93987a1e16036d59b1972da0c1a3926e
parent7ba8260c46b3da04b56be15528deb25dc9cea877
core/cgroup: cache the last memory usage values before destroying cgroup

Currently, memory accounting values are only cached if it was queued
at least once before destroying cgroup. Let's always cache it like
what we already do for CPU usage.

Preparation for later changes.
src/core/cgroup.c