]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/cgroup: set bitfield to reduce struct size
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 14 Sep 2021 05:11:08 +0000 (14:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 14 Sep 2021 11:30:09 +0000 (20:30 +0900)
src/core/cgroup.h

index 99bf7e22d8f18fc3b08ba6bca4da8eea69c425f6..5b55dd7121bf6c005ab2aeb64bc677ec612587ae 100644 (file)
@@ -148,10 +148,10 @@ struct CGroupContext {
         uint64_t memory_max;
         uint64_t memory_swap_max;
 
-        bool default_memory_min_set;
-        bool default_memory_low_set;
-        bool memory_min_set;
-        bool memory_low_set;
+        bool default_memory_min_set:1;
+        bool default_memory_low_set:1;
+        bool memory_min_set:1;
+        bool memory_low_set:1;
 
         LIST_HEAD(IPAddressAccessItem, ip_address_allow);
         LIST_HEAD(IPAddressAccessItem, ip_address_deny);