diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-19 17:17:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-09 11:17:57 +0200 |
commit | 0bb814c2c21350eafaf267c2003f4af530ca7242 (patch) | |
tree | f86ea0a5b6507894a0d7e091003b821ef140fbdc /src/core/unit.h | |
parent | core: check for redundant operation before doing allocation (diff) | |
download | systemd-0bb814c2c21350eafaf267c2003f4af530ca7242.tar.xz systemd-0bb814c2c21350eafaf267c2003f4af530ca7242.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/core/unit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 28878b5f4f..dc2278c32d 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -252,7 +252,7 @@ typedef struct Unit { CGroupMask cgroup_enabled_mask; /* Which controllers are enabled (or more correctly: enabled for the children) for this unit's cgroup? (only relevant on cgroup v2) */ CGroupMask cgroup_invalidated_mask; /* A mask specifiying controllers which shall be considered invalidated, and require re-realization */ CGroupMask cgroup_members_mask; /* A cache for the controllers required by all children of this cgroup (only relevant for slice units) */ - int cgroup_inotify_wd; + int cgroup_control_inotify_wd; /* Device Controller BPF program */ BPFProgram *bpf_device_control_installed; |