core: rename cgroup_inotify_wd → cgroup_control_inotify_wd
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Mar 2019 16:17:31 +0000 (17:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Apr 2019 09:17:57 +0000 (11:17 +0200)
commit0bb814c2c21350eafaf267c2003f4af530ca7242
treef86ea0a5b6507894a0d7e091003b821ef140fbdc
parent5210387ea66655dfcc3264b3c44f95b373c0f719
core: rename cgroup_inotify_wd → cgroup_control_inotify_wd

Let's rename the .cgroup_inotify_wd field of the Unit object to
.cgroup_control_inotify_wd. Let's similarly rename the hashmap
.cgroup_inotify_wd_unit of the Manager object to
.cgroup_control_inotify_wd_unit.

Why? As preparation for a later commit that allows us to watch the
"memory.events" cgroup attribute file in addition to the "cgroup.events"
file we already watch with the fields above. In that later commit we'll
add new fields "cgroup_memory_inotify_wd" to Unit and
"cgroup_memory_inotify_wd_unit" to Manager, that are used to watch these
other events file.

No change in behaviour. Just some renaming.
src/core/cgroup.c
src/core/manager.h
src/core/unit.c
src/core/unit.h