cgroup: rename ->create/post_create/pre_destroy/destroy() to ->css_alloc/online/offli...
[linux-2.6-block.git] / security / device_cgroup.c
index 78a16f5b727510ff800c79243467b4e74e6c6a3e..19ecc8de9e6bfd837e2589546fdfe49b04b23ed0 100644 (file)
@@ -180,7 +180,7 @@ static void dev_exception_clean(struct dev_cgroup *dev_cgroup)
 /*
  * called from kernel/cgroup.c with cgroup_lock() held.
  */
-static struct cgroup_subsys_state *devcgroup_create(struct cgroup *cgroup)
+static struct cgroup_subsys_state *devcgroup_css_alloc(struct cgroup *cgroup)
 {
        struct dev_cgroup *dev_cgroup, *parent_dev_cgroup;
        struct cgroup *parent_cgroup;
@@ -210,7 +210,7 @@ static struct cgroup_subsys_state *devcgroup_create(struct cgroup *cgroup)
        return &dev_cgroup->css;
 }
 
-static void devcgroup_destroy(struct cgroup *cgroup)
+static void devcgroup_css_free(struct cgroup *cgroup)
 {
        struct dev_cgroup *dev_cgroup;
 
@@ -564,8 +564,8 @@ static struct cftype dev_cgroup_files[] = {
 struct cgroup_subsys devices_subsys = {
        .name = "devices",
        .can_attach = devcgroup_can_attach,
-       .create = devcgroup_create,
-       .destroy = devcgroup_destroy,
+       .css_alloc = devcgroup_css_alloc,
+       .css_free = devcgroup_css_free,
        .subsys_id = devices_subsys_id,
        .base_cftypes = dev_cgroup_files,