Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304787
b: refs/heads/master
c: 6e6ff25
h: refs/heads/master
i:
  304785: aa77c37
  304783: 1a85d51
v: v3
  • Loading branch information
Tejun Heo committed Apr 1, 2012
1 parent 2a7d75b commit 3d8bb29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 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: 8e3f6541d45e1a002801e56a19530a90f775deba
refs/heads/master: 6e6ff25bd548a0c5bf5163e4f63e2793dcefbdcb
19 changes: 7 additions & 12 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3732,13 +3732,13 @@ static struct cftype files[] = {
.read_u64 = cgroup_clone_children_read,
.write_u64 = cgroup_clone_children_write,
},
};

static struct cftype cft_release_agent = {
.name = "release_agent",
.read_seq_string = cgroup_release_agent_show,
.write_string = cgroup_release_agent_write,
.max_write_len = PATH_MAX,
{
.name = "release_agent",
.flags = CFTYPE_ONLY_ON_ROOT,
.read_seq_string = cgroup_release_agent_show,
.write_string = cgroup_release_agent_write,
.max_write_len = PATH_MAX,
},
};

static int cgroup_populate_dir(struct cgroup *cgrp)
Expand All @@ -3750,11 +3750,6 @@ static int cgroup_populate_dir(struct cgroup *cgrp)
if (err < 0)
return err;

if (cgrp == cgrp->top_cgroup) {
if ((err = cgroup_add_file(cgrp, NULL, &cft_release_agent)) < 0)
return err;
}

/* process cftsets of each subsystem */
for_each_subsys(cgrp->root, ss) {
struct cftype_set *set;
Expand Down

0 comments on commit 3d8bb29

Please sign in to comment.