|
@@ -1703,7 +1703,7 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
|
|
*/
|
|
*/
|
|
cgroup_free_root(opts.new_root);
|
|
cgroup_free_root(opts.new_root);
|
|
|
|
|
|
- if (root->flags != opts.flags) {
|
|
|
|
|
|
+ if ((root->flags ^ opts.flags) & CGRP_ROOT_OPTION_MASK) {
|
|
if ((root->flags | opts.flags) & CGRP_ROOT_SANE_BEHAVIOR) {
|
|
if ((root->flags | opts.flags) & CGRP_ROOT_SANE_BEHAVIOR) {
|
|
pr_err("cgroup: sane_behavior: new mount options should match the existing superblock\n");
|
|
pr_err("cgroup: sane_behavior: new mount options should match the existing superblock\n");
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|