chiark / gitweb /
cgroup: rename cg_update_unified() → cg_unified_update()
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Feb 2017 17:03:09 +0000 (18:03 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
We usually put the noun first, the verb (i.e. method) secont, for
example in cg_unified_flush(), let's follow the logic here...

src/basic/cgroup-util.c

index a0947b8c5851e20508e07ceecdc8a05d14ba0e22..ff9367e8cd81773d76e53a7e68b59959e48d5072 100644 (file)
@@ -2409,7 +2409,7 @@ static thread_local CGroupUnified unified_cache = CGROUP_UNIFIED_UNKNOWN;
  */
 static thread_local bool unified_systemd_v232;
 
-static int cg_update_unified(void) {
+static int cg_unified_update(void) {
 
         struct statfs fs;
 
@@ -2460,7 +2460,7 @@ static int cg_update_unified(void) {
 int cg_unified_controller(const char *controller) {
         int r;
 
-        r = cg_update_unified();
+        r = cg_unified_update();
         if (r < 0)
                 return r;
 
@@ -2481,7 +2481,7 @@ int cg_all_unified(void) {
 int cg_hybrid_unified(void) {
         int r;
 
-        r = cg_update_unified();
+        r = cg_unified_update();
         if (r < 0)
                 return r;
 
@@ -2491,7 +2491,7 @@ int cg_hybrid_unified(void) {
 int cg_unified_flush(void) {
         unified_cache = CGROUP_UNIFIED_UNKNOWN;
 
-        return cg_update_unified();
+        return cg_unified_update();
 }
 
 int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) {