lkml.org 
[lkml]   [2014]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/6] cgroup: clean up cgroup_subsys names and initialization
> --- a/security/device_cgroup.c
> +++ b/security/device_cgroup.c
> @@ -58,11 +58,9 @@ static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s)
>
> static inline struct dev_cgroup *task_devcgroup(struct task_struct *task)
> {
> - return css_to_devcgroup(task_css(task, devices_subsys_id));
> + return css_to_devcgroup(task_css(task, devices_cgrp_id));
> }
>
> -struct cgroup_subsys devices_subsys;
> -
> /*
> * called under devcgroup_mutex
> */
> @@ -684,13 +682,11 @@ static struct cftype dev_cgroup_files[] = {
> { } /* terminate */
> };
>
> -struct cgroup_subsys devices_subsys = {
> - .name = "devices",
> +struct cgroup_subsys devices_cgrp_subsys = {
> .css_alloc = devcgroup_css_alloc,
> .css_free = devcgroup_css_free,
> .css_online = devcgroup_online,
> .css_offline = devcgroup_offline,
> - .subsys_id = devices_subsys_id,
> .base_cftypes = dev_cgroup_files,
> };

ACK

--
Aristeu



\
 
 \ /
  Last update: 2014-01-29 18:01    [W:0.103 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site