Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365567
b: refs/heads/master
c: e7b2dcc
h: refs/heads/master
i:
  365565: f5d9e38
  365563: ce57500
  365559: b79c7ac
  365551: f5c58de
  365535: 2dea5ca
  365503: 6d2c682
  365439: 1317529
  365311: 6535af6
  365055: 12caa9c
  364543: 0e4ad2a
v: v3
  • Loading branch information
Li Zefan authored and Tejun Heo committed Mar 12, 2013
1 parent 0baac16 commit 55e7eb5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 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: cfb5966bef85412dab9c93553db10b3e99ac32e8
refs/heads/master: e7b2dcc52b0e2d598a469f01cc460ccdde6869f2
3 changes: 0 additions & 3 deletions trunk/include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,6 @@ int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen);

int cgroup_task_count(const struct cgroup *cgrp);

/* Return true if cgrp is a descendant of the task's cgroup */
int cgroup_is_descendant(const struct cgroup *cgrp, struct task_struct *task);

/*
* Control Group taskset, used to pass around set of tasks to cgroup_subsys
* methods.
Expand Down
28 changes: 0 additions & 28 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5035,34 +5035,6 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks)
put_css_set_taskexit(cg);
}

/**
* cgroup_is_descendant - see if @cgrp is a descendant of @task's cgrp
* @cgrp: the cgroup in question
* @task: the task in question
*
* See if @cgrp is a descendant of @task's cgroup in the appropriate
* hierarchy.
*
* If we are sending in dummytop, then presumably we are creating
* the top cgroup in the subsystem.
*
* Called only by the ns (nsproxy) cgroup.
*/
int cgroup_is_descendant(const struct cgroup *cgrp, struct task_struct *task)
{
int ret;
struct cgroup *target;

if (cgrp == dummytop)
return 1;

target = task_cgroup_from_root(task, cgrp->root);
while (cgrp != target && cgrp!= cgrp->top_cgroup)
cgrp = cgrp->parent;
ret = (cgrp == target);
return ret;
}

static void check_for_release(struct cgroup *cgrp)
{
/* All of these checks rely on RCU to keep the cgroup
Expand Down

0 comments on commit 55e7eb5

Please sign in to comment.