Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205533
b: refs/heads/master
c: 676db4a
h: refs/heads/master
i:
  205531: 99ab4f3
v: v3
  • Loading branch information
Greg KH committed Aug 5, 2010
1 parent a0deb20 commit eb56989
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45daef0fdcc44f6af86fdebc4fc7eb7c79375398
refs/heads/master: 676db4af043014e852f67ba0349dae0071bd11f3
13 changes: 12 additions & 1 deletion trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,8 @@ static struct file_system_type cgroup_fs_type = {
.kill_sb = cgroup_kill_sb,
};

static struct kobject *cgroup_kobj;

static inline struct cgroup *__d_cgrp(struct dentry *dentry)
{
return dentry->d_fsdata;
Expand Down Expand Up @@ -3894,9 +3896,18 @@ int __init cgroup_init(void)
hhead = css_set_hash(init_css_set.subsys);
hlist_add_head(&init_css_set.hlist, hhead);
BUG_ON(!init_root_id(&rootnode));

cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj);
if (!cgroup_kobj) {
err = -ENOMEM;
goto out;
}

err = register_filesystem(&cgroup_fs_type);
if (err < 0)
if (err < 0) {
kobject_put(cgroup_kobj);
goto out;
}

proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations);

Expand Down

0 comments on commit eb56989

Please sign in to comment.