|
@@ -66,13 +66,12 @@ enum cgroup_subsys_id {
|
|
|
|
|
|
|
|
/* Per-subsystem/per-cgroup state maintained by the system. */
|
|
/* Per-subsystem/per-cgroup state maintained by the system. */
|
|
|
struct cgroup_subsys_state {
|
|
struct cgroup_subsys_state {
|
|
|
- /*
|
|
|
|
|
- * The cgroup that this subsystem is attached to. Useful
|
|
|
|
|
- * for subsystems that want to know about the cgroup
|
|
|
|
|
- * hierarchy structure
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ /* the cgroup that this css is attached to */
|
|
|
struct cgroup *cgroup;
|
|
struct cgroup *cgroup;
|
|
|
|
|
|
|
|
|
|
+ /* the cgroup subsystem that this css is attached to */
|
|
|
|
|
+ struct cgroup_subsys *ss;
|
|
|
|
|
+
|
|
|
/* reference count - access via css_[try]get() and css_put() */
|
|
/* reference count - access via css_[try]get() and css_put() */
|
|
|
struct percpu_ref refcnt;
|
|
struct percpu_ref refcnt;
|
|
|
|
|
|