chiark / gitweb /
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 fb4047f..330014d 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 d27c063..26fac0a 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);