diff options
author | 2014-07-15 11:05:09 -0400 | |
---|---|---|
committer | 2014-07-15 11:05:09 -0400 | |
commit | a14c6874be09a05a48093df8df87ca021f310332 (patch) | |
tree | 5ab9b25d30457737def61f0bd9fe68c857f9e46d /virt/kvm | |
parent | cpuset: export effective masks to userspace (diff) | |
download | linux-a14c6874be09a05a48093df8df87ca021f310332.tar.gz linux-a14c6874be09a05a48093df8df87ca021f310332.tar.bz2 linux-a14c6874be09a05a48093df8df87ca021f310332.zip |
cgroup: split cgroup_base_files[] into cgroup_{dfl|legacy}_base_files[]
Currently cgroup_base_files[] contains the cgroup core interface files
for both legacy and default hierarchies with each file tagged with
CFTYPE_INSANE and CFTYPE_ONLY_ON_DFL. This is difficult to read.
Let's separate it out to two separate tables, cgroup_dfl_base_files[]
and cgroup_legacy_base_files[], and use the appropriate one in
cgroup_mkdir() depending on the hierarchy type. This makes tagging
each file unnecessary.
This patch doesn't introduce any behavior changes.
v2: cgroup_dfl_base_files[] was missing the termination entry
triggering WARN in cgroup_init_cftypes() for 0day kernel testing
robot. Fixed.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Jet Chen <jet.chen@intel.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions