mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
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...
This commit is contained in:
parent
c22800e40e
commit
1fcca10eb3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user