diff options
author | 2014-02-12 09:29:48 -0500 | |
---|---|---|
committer | 2014-02-12 09:29:48 -0500 | |
commit | 86bf4b68759141459864ebd36ac3038a9cda895b (patch) | |
tree | 81c1bfe990c4752f5056c9df02258391fc9ca464 /kernel | |
parent | cgroup: convert to kernfs (diff) | |
download | linux-86bf4b68759141459864ebd36ac3038a9cda895b.tar.gz linux-86bf4b68759141459864ebd36ac3038a9cda895b.tar.bz2 linux-86bf4b68759141459864ebd36ac3038a9cda895b.zip |
cgroup: warn if "xattr" is specified with "sane_behavior"
Mount option "xattr" is no longer necessary as it's enabled by default
on kernfs. Warn if "xattr" is specified with "sane_behavior" so that
the option can be removed in the future.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index cda614da40cf..a0fab71f200f 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1267,6 +1267,9 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts) pr_err("cgroup: sane_behavior: clone_children is not allowed\n"); return -EINVAL; } + + if (opts->flags & CGRP_ROOT_XATTR) + pr_warning("cgroup: sane_behavior: xattr is always available, flag unnecessary\n"); } /* |