cgroup: keep track of number of descent cgroups
[sfrench/cifs-2.6.git] / include / linux / cgroup-defs.h
index 9d741959f218d92d345ae91f6790ccf43ddf6dca..58b4c425a1550238fa4f8586f2322ac69c31ea9e 100644 (file)
@@ -273,6 +273,14 @@ struct cgroup {
         */
        int level;
 
+       /*
+        * Keep track of total numbers of visible and dying descent cgroups.
+        * Dying cgroups are cgroups which were deleted by a user,
+        * but are still existing because someone else is holding a reference.
+        */
+       int nr_descendants;
+       int nr_dying_descendants;
+
        /*
         * Each non-empty css_set associated with this cgroup contributes
         * one to nr_populated_csets.  The counter is zero iff this cgroup