Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-28 Thread Zefan Li
On 2015/7/25 2:43, Tejun Heo wrote: > This allows cgroup subsystems to use a different name on the unified > hierarchy. cgroup_subsys->name is used on the unified hierarchy, > ->legacy_name elsewhere. If ->legacy_name is not explicitly set, it's > automatically set to ->name and the userland visi

Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-28 Thread Tejun Heo
On Tue, Jul 28, 2015 at 02:39:36PM +0800, Zefan Li wrote: > > @@ -1448,7 +1451,8 @@ static int parse_cgroupfs_options(char *data, struct > > cgroup_sb_opts *opts) > > } > > > > for_each_subsys(ss, i) { > > - if (strcmp(token, ss->name)) > > +

Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-27 Thread Zefan Li
> @@ -1448,7 +1451,8 @@ static int parse_cgroupfs_options(char *data, struct > cgroup_sb_opts *opts) > } > > for_each_subsys(ss, i) { > - if (strcmp(token, ss->name)) > + if (strcmp(token, ss->name) && > +

[PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-24 Thread Tejun Heo
This allows cgroup subsystems to use a different name on the unified hierarchy. cgroup_subsys->name is used on the unified hierarchy, ->legacy_name elsewhere. If ->legacy_name is not explicitly set, it's automatically set to ->name and the userland visible behavior remains unchanged. Signed-off-