]> err.no Git - systemd/commitdiff
cgroup: drop inherit flag, this mus be fixed in the kernel
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Jun 2010 03:07:30 +0000 (05:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Jun 2010 03:07:30 +0000 (05:07 +0200)
src/cgroup.c
src/cgroup.h

index fb4047f2153cb49d10fb69ea413f7234a80255d6..330014dc9f95e1be55aeb2cc2c38de69d900946e 100644 (file)
@@ -70,12 +70,7 @@ int cgroup_bonding_realize(CGroupBonding *b) {
                 goto fail;
         }
 
-        if (b->inherit)
-                r = cgroup_create_cgroup_from_parent(b->cgroup, true);
-        else
-                r = cgroup_create_cgroup(b->cgroup, true);
-
-        if (r != 0) {
+        if ((r = cgroup_create_cgroup(b->cgroup, true)) != 0) {
                 r = translate_error(r, errno);
                 goto fail;
         }
index d27c063c12fea7d11151be4c5f29adbda507217c..26fac0a66027dc77225e3415f755f0b23f4282f4 100644 (file)
@@ -48,9 +48,6 @@ struct CGroupBonding {
 
         /* When our tasks are the only ones in this group */
         bool only_us:1;
-
-        /* Inherit parameters from parent group */
-        bool inherit:1;
 };
 
 int cgroup_bonding_realize(CGroupBonding *b);