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>
This commit is contained in:
parent
8947f9d5b3
commit
ce16b49d37
|
@ -205,48 +205,48 @@ struct cftype {
|
||||||
* subsystem, followed by a period */
|
* subsystem, followed by a period */
|
||||||
char name[MAX_CFTYPE_NAME];
|
char name[MAX_CFTYPE_NAME];
|
||||||
int private;
|
int private;
|
||||||
int (*open) (struct inode *inode, struct file *file);
|
int (*open)(struct inode *inode, struct file *file);
|
||||||
ssize_t (*read) (struct cgroup *cgrp, struct cftype *cft,
|
ssize_t (*read)(struct cgroup *cgrp, struct cftype *cft,
|
||||||
struct file *file,
|
struct file *file,
|
||||||
char __user *buf, size_t nbytes, loff_t *ppos);
|
char __user *buf, size_t nbytes, loff_t *ppos);
|
||||||
/*
|
/*
|
||||||
* read_u64() is a shortcut for the common case of returning a
|
* read_u64() is a shortcut for the common case of returning a
|
||||||
* single integer. Use it in place of read()
|
* single integer. Use it in place of read()
|
||||||
*/
|
*/
|
||||||
u64 (*read_u64) (struct cgroup *cgrp, struct cftype *cft);
|
u64 (*read_u64)(struct cgroup *cgrp, struct cftype *cft);
|
||||||
/*
|
/*
|
||||||
* read_s64() is a signed version of read_u64()
|
* read_s64() is a signed version of read_u64()
|
||||||
*/
|
*/
|
||||||
s64 (*read_s64) (struct cgroup *cgrp, struct cftype *cft);
|
s64 (*read_s64)(struct cgroup *cgrp, struct cftype *cft);
|
||||||
/*
|
/*
|
||||||
* read_map() is used for defining a map of key/value
|
* read_map() is used for defining a map of key/value
|
||||||
* pairs. It should call cb->fill(cb, key, value) for each
|
* pairs. It should call cb->fill(cb, key, value) for each
|
||||||
* entry. The key/value pairs (and their ordering) should not
|
* entry. The key/value pairs (and their ordering) should not
|
||||||
* change between reboots.
|
* change between reboots.
|
||||||
*/
|
*/
|
||||||
int (*read_map) (struct cgroup *cont, struct cftype *cft,
|
int (*read_map)(struct cgroup *cont, struct cftype *cft,
|
||||||
struct cgroup_map_cb *cb);
|
struct cgroup_map_cb *cb);
|
||||||
/*
|
/*
|
||||||
* read_seq_string() is used for outputting a simple sequence
|
* read_seq_string() is used for outputting a simple sequence
|
||||||
* using seqfile.
|
* using seqfile.
|
||||||
*/
|
*/
|
||||||
int (*read_seq_string) (struct cgroup *cont, struct cftype *cft,
|
int (*read_seq_string)(struct cgroup *cont, struct cftype *cft,
|
||||||
struct seq_file *m);
|
struct seq_file *m);
|
||||||
|
|
||||||
ssize_t (*write) (struct cgroup *cgrp, struct cftype *cft,
|
ssize_t (*write)(struct cgroup *cgrp, struct cftype *cft,
|
||||||
struct file *file,
|
struct file *file,
|
||||||
const char __user *buf, size_t nbytes, loff_t *ppos);
|
const char __user *buf, size_t nbytes, loff_t *ppos);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* write_u64() is a shortcut for the common case of accepting
|
* write_u64() is a shortcut for the common case of accepting
|
||||||
* a single integer (as parsed by simple_strtoull) from
|
* a single integer (as parsed by simple_strtoull) from
|
||||||
* userspace. Use in place of write(); return 0 or error.
|
* userspace. Use in place of write(); return 0 or error.
|
||||||
*/
|
*/
|
||||||
int (*write_u64) (struct cgroup *cgrp, struct cftype *cft, u64 val);
|
int (*write_u64)(struct cgroup *cgrp, struct cftype *cft, u64 val);
|
||||||
/*
|
/*
|
||||||
* write_s64() is a signed version of write_u64()
|
* write_s64() is a signed version of write_u64()
|
||||||
*/
|
*/
|
||||||
int (*write_s64) (struct cgroup *cgrp, struct cftype *cft, s64 val);
|
int (*write_s64)(struct cgroup *cgrp, struct cftype *cft, s64 val);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* trigger() callback can be used to get some kick from the
|
* trigger() callback can be used to get some kick from the
|
||||||
|
@ -256,7 +256,7 @@ struct cftype {
|
||||||
*/
|
*/
|
||||||
int (*trigger)(struct cgroup *cgrp, unsigned int event);
|
int (*trigger)(struct cgroup *cgrp, unsigned int event);
|
||||||
|
|
||||||
int (*release) (struct inode *inode, struct file *file);
|
int (*release)(struct inode *inode, struct file *file);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cgroup_scanner {
|
struct cgroup_scanner {
|
||||||
|
|
Loading…
Reference in New Issue