diff options
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index b6eadfe30e7b..cd83d9933b6b 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -596,10 +596,11 @@ void cgroup_unlock(void) | |||
596 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode); | 596 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode); |
597 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); | 597 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); |
598 | static int cgroup_populate_dir(struct cgroup *cgrp); | 598 | static int cgroup_populate_dir(struct cgroup *cgrp); |
599 | static struct inode_operations cgroup_dir_inode_operations; | 599 | static const struct inode_operations cgroup_dir_inode_operations; |
600 | static struct file_operations proc_cgroupstats_operations; | 600 | static struct file_operations proc_cgroupstats_operations; |
601 | 601 | ||
602 | static struct backing_dev_info cgroup_backing_dev_info = { | 602 | static struct backing_dev_info cgroup_backing_dev_info = { |
603 | .name = "cgroup", | ||
603 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, | 604 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, |
604 | }; | 605 | }; |
605 | 606 | ||
@@ -960,7 +961,7 @@ static int cgroup_remount(struct super_block *sb, int *flags, char *data) | |||
960 | return ret; | 961 | return ret; |
961 | } | 962 | } |
962 | 963 | ||
963 | static struct super_operations cgroup_ops = { | 964 | static const struct super_operations cgroup_ops = { |
964 | .statfs = simple_statfs, | 965 | .statfs = simple_statfs, |
965 | .drop_inode = generic_delete_inode, | 966 | .drop_inode = generic_delete_inode, |
966 | .show_options = cgroup_show_options, | 967 | .show_options = cgroup_show_options, |
@@ -1710,7 +1711,7 @@ static struct file_operations cgroup_file_operations = { | |||
1710 | .release = cgroup_file_release, | 1711 | .release = cgroup_file_release, |
1711 | }; | 1712 | }; |
1712 | 1713 | ||
1713 | static struct inode_operations cgroup_dir_inode_operations = { | 1714 | static const struct inode_operations cgroup_dir_inode_operations = { |
1714 | .lookup = simple_lookup, | 1715 | .lookup = simple_lookup, |
1715 | .mkdir = cgroup_mkdir, | 1716 | .mkdir = cgroup_mkdir, |
1716 | .rmdir = cgroup_rmdir, | 1717 | .rmdir = cgroup_rmdir, |
@@ -2313,7 +2314,7 @@ static int cgroup_tasks_show(struct seq_file *s, void *v) | |||
2313 | return seq_printf(s, "%d\n", *(int *)v); | 2314 | return seq_printf(s, "%d\n", *(int *)v); |
2314 | } | 2315 | } |
2315 | 2316 | ||
2316 | static struct seq_operations cgroup_tasks_seq_operations = { | 2317 | static const struct seq_operations cgroup_tasks_seq_operations = { |
2317 | .start = cgroup_tasks_start, | 2318 | .start = cgroup_tasks_start, |
2318 | .stop = cgroup_tasks_stop, | 2319 | .stop = cgroup_tasks_stop, |
2319 | .next = cgroup_tasks_next, | 2320 | .next = cgroup_tasks_next, |