aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorPaul Menage <menage@google.com>2008-07-25 04:46:57 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 13:53:35 -0400
commitce16b49d37e748574f7fabc2726268d542d0aa1a (patch)
treedc079efb12661484efa7dd2659a38cfd7b3f3fd5 /include/linux/cgroup.h
parent8947f9d5b361ce927be6d5c11fed57905b7a4100 (diff)
cgroup files: clean up whitespace in struct cftype
This patch removes some extraneous spaces from method declarations in struct cftype, to fit in with conventional kernel style. Signed-off-by: Paul Menage <menage@google.com> Cc: Paul Jackson <pj@sgi.com> Cc: Pavel Emelyanov <xemul@openvz.org> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Serge Hallyn <serue@us.ibm.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index e155aa78d859..88a734edccbc 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -205,48 +205,48 @@ struct cftype {
205 * subsystem, followed by a period */ 205 * subsystem, followed by a period */
206 char name[MAX_CFTYPE_NAME]; 206 char name[MAX_CFTYPE_NAME];
207 int private; 207 int private;
208 int (*open) (struct inode *inode, struct file *file); 208 int (*open)(struct inode *inode, struct file *file);
209 ssize_t (*read) (struct cgroup *cgrp, struct cftype *cft, 209 ssize_t (*read)(struct cgroup *cgrp, struct cftype *cft,
210 struct file *file, 210 struct file *file,
211 char __user *buf, size_t nbytes, loff_t *ppos); 211 char __user *buf, size_t nbytes, loff_t *ppos);
212 /* 212 /*
213 * read_u64() is a shortcut for the common case of returning a 213 * read_u64() is a shortcut for the common case of returning a
214 * single integer. Use it in place of read() 214 * single integer. Use it in place of read()
215 */ 215 */
216 u64 (*read_u64) (struct cgroup *cgrp, struct cftype *cft); 216 u64 (*read_u64)(struct cgroup *cgrp, struct cftype *cft);
217 /* 217 /*
218 * read_s64() is a signed version of read_u64() 218 * read_s64() is a signed version of read_u64()
219 */ 219 */
220 s64 (*read_s64) (struct cgroup *cgrp, struct cftype *cft); 220 s64 (*read_s64)(struct cgroup *cgrp, struct cftype *cft);
221 /* 221 /*
222 * read_map() is used for defining a map of key/value 222 * read_map() is used for defining a map of key/value
223 * pairs. It should call cb->fill(cb, key, value) for each 223 * pairs. It should call cb->fill(cb, key, value) for each
224 * entry. The key/value pairs (and their ordering) should not 224 * entry. The key/value pairs (and their ordering) should not
225 * change between reboots. 225 * change between reboots.
226 */ 226 */
227 int (*read_map) (struct cgroup *cont, struct cftype *cft, 227 int (*read_map)(struct cgroup *cont, struct cftype *cft,
228 struct cgroup_map_cb *cb); 228 struct cgroup_map_cb *cb);
229 /* 229 /*
230 * read_seq_string() is used for outputting a simple sequence 230 * read_seq_string() is used for outputting a simple sequence
231 * using seqfile. 231 * using seqfile.
232 */ 232 */
233 int (*read_seq_string) (struct cgroup *cont, struct cftype *cft, 233 int (*read_seq_string)(struct cgroup *cont, struct cftype *cft,
234 struct seq_file *m); 234 struct seq_file *m);
235 235
236 ssize_t (*write) (struct cgroup *cgrp, struct cftype *cft, 236 ssize_t (*write)(struct cgroup *cgrp, struct cftype *cft,
237 struct file *file, 237 struct file *file,
238 const char __user *buf, size_t nbytes, loff_t *ppos); 238 const char __user *buf, size_t nbytes, loff_t *ppos);
239 239
240 /* 240 /*
241 * write_u64() is a shortcut for the common case of accepting 241 * write_u64() is a shortcut for the common case of accepting
242 * a single integer (as parsed by simple_strtoull) from 242 * a single integer (as parsed by simple_strtoull) from
243 * userspace. Use in place of write(); return 0 or error. 243 * userspace. Use in place of write(); return 0 or error.
244 */ 244 */
245 int (*write_u64) (struct cgroup *cgrp, struct cftype *cft, u64 val); 245 int (*write_u64)(struct cgroup *cgrp, struct cftype *cft, u64 val);
246 /* 246 /*
247 * write_s64() is a signed version of write_u64() 247 * write_s64() is a signed version of write_u64()
248 */ 248 */
249 int (*write_s64) (struct cgroup *cgrp, struct cftype *cft, s64 val); 249 int (*write_s64)(struct cgroup *cgrp, struct cftype *cft, s64 val);
250 250
251 /* 251 /*
252 * trigger() callback can be used to get some kick from the 252 * trigger() callback can be used to get some kick from the
@@ -256,7 +256,7 @@ struct cftype {
256 */ 256 */
257 int (*trigger)(struct cgroup *cgrp, unsigned int event); 257 int (*trigger)(struct cgroup *cgrp, unsigned int event);
258 258
259 int (*release) (struct inode *inode, struct file *file); 259 int (*release)(struct inode *inode, struct file *file);
260}; 260};
261 261
262struct cgroup_scanner { 262struct cgroup_scanner {