提交 1ec41830 编写于 作者: L Li Zefan 提交者: Tejun Heo

cgroup: remove useless argument from cgroup_exit()

Signed-off-by: NLi Zefan <lizefan@huawei.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 e8604cb4
...@@ -33,7 +33,7 @@ extern int cgroup_init_early(void); ...@@ -33,7 +33,7 @@ extern int cgroup_init_early(void);
extern int cgroup_init(void); extern int cgroup_init(void);
extern void cgroup_fork(struct task_struct *p); extern void cgroup_fork(struct task_struct *p);
extern void cgroup_post_fork(struct task_struct *p); extern void cgroup_post_fork(struct task_struct *p);
extern void cgroup_exit(struct task_struct *p, int run_callbacks); extern void cgroup_exit(struct task_struct *p);
extern int cgroupstats_build(struct cgroupstats *stats, extern int cgroupstats_build(struct cgroupstats *stats,
struct dentry *dentry); struct dentry *dentry);
...@@ -843,7 +843,7 @@ static inline int cgroup_init_early(void) { return 0; } ...@@ -843,7 +843,7 @@ static inline int cgroup_init_early(void) { return 0; }
static inline int cgroup_init(void) { return 0; } static inline int cgroup_init(void) { return 0; }
static inline void cgroup_fork(struct task_struct *p) {} static inline void cgroup_fork(struct task_struct *p) {}
static inline void cgroup_post_fork(struct task_struct *p) {} static inline void cgroup_post_fork(struct task_struct *p) {}
static inline void cgroup_exit(struct task_struct *p, int callbacks) {} static inline void cgroup_exit(struct task_struct *p) {}
static inline int cgroupstats_build(struct cgroupstats *stats, static inline int cgroupstats_build(struct cgroupstats *stats,
struct dentry *dentry) struct dentry *dentry)
......
...@@ -4416,7 +4416,6 @@ void cgroup_post_fork(struct task_struct *child) ...@@ -4416,7 +4416,6 @@ void cgroup_post_fork(struct task_struct *child)
/** /**
* cgroup_exit - detach cgroup from exiting task * cgroup_exit - detach cgroup from exiting task
* @tsk: pointer to task_struct of exiting process * @tsk: pointer to task_struct of exiting process
* @run_callback: run exit callbacks?
* *
* Description: Detach cgroup from @tsk and release it. * Description: Detach cgroup from @tsk and release it.
* *
...@@ -4433,7 +4432,7 @@ void cgroup_post_fork(struct task_struct *child) ...@@ -4433,7 +4432,7 @@ void cgroup_post_fork(struct task_struct *child)
* init_css_set refcnting. init_css_set never goes away and we can't race * init_css_set refcnting. init_css_set never goes away and we can't race
* with migration path - PF_EXITING is visible to migration path. * with migration path - PF_EXITING is visible to migration path.
*/ */
void cgroup_exit(struct task_struct *tsk, int run_callbacks) void cgroup_exit(struct task_struct *tsk)
{ {
struct cgroup_subsys *ss; struct cgroup_subsys *ss;
struct css_set *cset; struct css_set *cset;
...@@ -4455,7 +4454,7 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks) ...@@ -4455,7 +4454,7 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks)
cset = task_css_set(tsk); cset = task_css_set(tsk);
RCU_INIT_POINTER(tsk->cgroups, &init_css_set); RCU_INIT_POINTER(tsk->cgroups, &init_css_set);
if (run_callbacks && need_forkexit_callback) { if (need_forkexit_callback) {
/* see cgroup_post_fork() for details */ /* see cgroup_post_fork() for details */
for_each_subsys(ss, i) { for_each_subsys(ss, i) {
if (ss->exit) { if (ss->exit) {
......
...@@ -797,7 +797,7 @@ void do_exit(long code) ...@@ -797,7 +797,7 @@ void do_exit(long code)
*/ */
perf_event_exit_task(tsk); perf_event_exit_task(tsk);
cgroup_exit(tsk, 1); cgroup_exit(tsk);
if (group_dead) if (group_dead)
disassociate_ctty(1); disassociate_ctty(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册