summaryrefslogtreecommitdiff
path: root/src/basic/cgroup-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-24 18:03:09 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-24 18:03:09 +0100
commit1fcca10eb364f45eb96ea46f8447a9bd41f3d623 (patch)
treee3646836c776994316a35d628aeec0d93f320a06 /src/basic/cgroup-util.c
parentc22800e40e1709e4794308114543f6d6d419e4ae (diff)
cgroup: rename cg_update_unified() → cg_unified_update()
We usually put the noun first, the verb (i.e. method) secont, for example in cg_unified_flush(), let's follow the logic here...
Diffstat (limited to 'src/basic/cgroup-util.c')
-rw-r--r--src/basic/cgroup-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 30a16287e7..c20a00a07a 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -2353,7 +2353,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;
@@ -2395,7 +2395,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;
@@ -2415,7 +2415,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;
@@ -2425,7 +2425,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) {