mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 20:25:25 +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 thread_local bool unified_systemd_v232;
|
||||||
|
|
||||||
static int cg_update_unified(void) {
|
static int cg_unified_update(void) {
|
||||||
|
|
||||||
struct statfs fs;
|
struct statfs fs;
|
||||||
|
|
||||||
@ -2395,7 +2395,7 @@ static int cg_update_unified(void) {
|
|||||||
int cg_unified_controller(const char *controller) {
|
int cg_unified_controller(const char *controller) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = cg_update_unified();
|
r = cg_unified_update();
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
@ -2415,7 +2415,7 @@ int cg_all_unified(void) {
|
|||||||
int cg_hybrid_unified(void) {
|
int cg_hybrid_unified(void) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = cg_update_unified();
|
r = cg_unified_update();
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
@ -2425,7 +2425,7 @@ int cg_hybrid_unified(void) {
|
|||||||
int cg_unified_flush(void) {
|
int cg_unified_flush(void) {
|
||||||
unified_cache = CGROUP_UNIFIED_UNKNOWN;
|
unified_cache = CGROUP_UNIFIED_UNKNOWN;
|
||||||
|
|
||||||
return cg_update_unified();
|
return cg_unified_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) {
|
int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user