diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2012-01-19 22:58:43 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-01-20 12:30:08 -0500 |
commit | 245282557c49754af3dbcc732316e814340d6bce (patch) | |
tree | e790dad8b26f273a3509d0a86fb4eec9589e54e7 /include/linux/cgroup.h | |
parent | a63b9072ea4e32c1fde8b783ccf6e4288414660b (diff) |
cgroup: move struct cgroup_pidlist out from the header file
It's internally used only.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index dee53bdb046d..7da3e745b74c 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -160,38 +160,6 @@ enum { | |||
160 | CGRP_CLONE_CHILDREN, | 160 | CGRP_CLONE_CHILDREN, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | /* which pidlist file are we talking about? */ | ||
164 | enum cgroup_filetype { | ||
165 | CGROUP_FILE_PROCS, | ||
166 | CGROUP_FILE_TASKS, | ||
167 | }; | ||
168 | |||
169 | /* | ||
170 | * A pidlist is a list of pids that virtually represents the contents of one | ||
171 | * of the cgroup files ("procs" or "tasks"). We keep a list of such pidlists, | ||
172 | * a pair (one each for procs, tasks) for each pid namespace that's relevant | ||
173 | * to the cgroup. | ||
174 | */ | ||
175 | struct cgroup_pidlist { | ||
176 | /* | ||
177 | * used to find which pidlist is wanted. doesn't change as long as | ||
178 | * this particular list stays in the list. | ||
179 | */ | ||
180 | struct { enum cgroup_filetype type; struct pid_namespace *ns; } key; | ||
181 | /* array of xids */ | ||
182 | pid_t *list; | ||
183 | /* how many elements the above list has */ | ||
184 | int length; | ||
185 | /* how many files are using the current array */ | ||
186 | int use_count; | ||
187 | /* each of these stored in a list by its cgroup */ | ||
188 | struct list_head links; | ||
189 | /* pointer to the cgroup we belong to, for list removal purposes */ | ||
190 | struct cgroup *owner; | ||
191 | /* protects the other fields */ | ||
192 | struct rw_semaphore mutex; | ||
193 | }; | ||
194 | |||
195 | struct cgroup { | 163 | struct cgroup { |
196 | unsigned long flags; /* "unsigned long" so bitops work */ | 164 | unsigned long flags; /* "unsigned long" so bitops work */ |
197 | 165 | ||