]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: drop "controller" argument from various cgroup helper calls
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2023 08:28:22 +0000 (10:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2023 09:11:04 +0000 (11:11 +0200)
commitbd1791b597e9e43cfc55441d67952854f68c3d4b
treea47236a4e0117480922990d00cddc595e69fee85
parent5ee3c914a4e904567e66654177b07777dde0d100
cgroup-util: drop "controller" argument from various cgroup helper calls

systemd's own cgroup hierarchy is special to us, we use it to actually
manage processes. Because of that many calls tha apply to cgroups are
only ever called with the SYSTEMD_CGROUP_CONTROLLER as controller
argument. Let's hence remove the argument altogether.

This in particular touches the kill and xattr routines.

This changes no behaviour, we just drop an argument that is always set
to the same value anyway.

This is preparation to eventually getting rid of the cgroupvs1, because
on cgroupvs2 the cgroup paths do not change for different controllers,
there's only a single hierarchy there.
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/core/cgroup.c
src/core/unit.c
src/journal/journald-client.c
src/oom/oomd-util.c
src/oom/test-oomd-util.c
src/shared/cgroup-setup.c
src/shared/killall.c
src/test/test-cgroup.c
src/udev/udev-manager.c