aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-06-13 22:38:26 -0400
committerTejun Heo <tj@kernel.org>2013-06-13 22:42:22 -0400
commit2b0e53a7c8a6972755c0f0152d7fad2289fdc5eb (patch)
treebf427cbe4b9d85cd5651b01f2f18668e8d12ed45 /kernel/cgroup.c
parentea15f8ccdb430af1e8bc9b4e19a230eb4c356777 (diff)
parentdbece3a0f1ef0b19aff1cc6ed0942fec9ab98de1 (diff)
Merge branch 'for-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu into for-3.11
This is to receive percpu_refcount which will replace atomic_t reference count in cgroup_subsys_state. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index df6814706cca..ebbfc043153f 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1688,11 +1688,14 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
1688 */ 1688 */
1689 cgroup_free_root(opts.new_root); 1689 cgroup_free_root(opts.new_root);
1690 1690
1691 if (((root->flags | opts.flags) & CGRP_ROOT_SANE_BEHAVIOR) && 1691 if (root->flags != opts.flags) {
1692 root->flags != opts.flags) { 1692 if ((root->flags | opts.flags) & CGRP_ROOT_SANE_BEHAVIOR) {
1693 pr_err("cgroup: sane_behavior: new mount options should match the existing superblock\n"); 1693 pr_err("cgroup: sane_behavior: new mount options should match the existing superblock\n");
1694 ret = -EINVAL; 1694 ret = -EINVAL;
1695 goto drop_new_super; 1695 goto drop_new_super;
1696 } else {
1697 pr_warning("cgroup: new mount options do not match the existing superblock, will be ignored\n");
1698 }
1696 } 1699 }
1697 1700
1698 /* no subsys rebinding, so refcounts don't change */ 1701 /* no subsys rebinding, so refcounts don't change */