]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: cg_is_pure_unified()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:20:54 +0000 (19:20 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 21 Feb 2018 14:48:32 +0000 (15:48 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 9ecbf5ac73b62d068a27a2384afc3d0b315a0fe0..a2f4bd369f6259eca777c5a7eeffaaa83ba7a124 100644 (file)
@@ -1333,19 +1333,20 @@ static bool cg_hybrid_init(void)
        return true;
 }
 
-static int cg_is_pure_unified(void) {
+static int cg_is_pure_unified(void)
+{
 
        int ret;
-        struct statfs fs;
+       struct statfs fs;
 
-        ret = statfs("/sys/fs/cgroup", &fs);
-        if (ret < 0)
-                return -ENOMEDIUM;
+       ret = statfs("/sys/fs/cgroup", &fs);
+       if (ret < 0)
+               return -ENOMEDIUM;
 
-        if (is_fs_type(&fs, CGROUP2_SUPER_MAGIC))
+       if (is_fs_type(&fs, CGROUP2_SUPER_MAGIC))
                return CGROUP2_SUPER_MAGIC;
 
-        return 0;
+       return 0;
 }
 
 /* Get current cgroup from /proc/self/cgroup for the cgroupfs v2 hierarchy. */