*/
static thread_local bool unified_systemd_v232;
-static int cg_update_unified(void) {
+static int cg_unified_update(void) {
struct statfs fs;
int cg_unified_controller(const char *controller) {
int r;
- r = cg_update_unified();
+ r = cg_unified_update();
if (r < 0)
return r;
}
int cg_all_unified(void) {
- return cg_unified_controller(NULL);
+ int r;
+
+ r = cg_unified_update();
+ if (r < 0)
+ return r;
+
+ return unified_cache >= CGROUP_UNIFIED_ALL;
}
#if 0 /// UNNEEDED by elogind
int cg_hybrid_unified(void) {
int r;
- r = cg_update_unified();
+ r = cg_unified_update();
if (r < 0)
return r;
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) {