diff options
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index ed64ccac67c9..741c120e06c1 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -1294,6 +1294,11 @@ static int cgroup_remount(struct super_block *sb, int *flags, char *data) | |||
1294 | if (ret) | 1294 | if (ret) |
1295 | goto out_unlock; | 1295 | goto out_unlock; |
1296 | 1296 | ||
1297 | /* See feature-removal-schedule.txt */ | ||
1298 | if (opts.subsys_bits != root->actual_subsys_bits || opts.release_agent) | ||
1299 | pr_warning("cgroup: option changes via remount are deprecated (pid=%d comm=%s)\n", | ||
1300 | task_tgid_nr(current), current->comm); | ||
1301 | |||
1297 | /* Don't allow flags or name to change at remount */ | 1302 | /* Don't allow flags or name to change at remount */ |
1298 | if (opts.flags != root->flags || | 1303 | if (opts.flags != root->flags || |
1299 | (opts.name && strcmp(opts.name, root->name))) { | 1304 | (opts.name && strcmp(opts.name, root->name))) { |