From 80cd6a4eedf5c60a32295412d89bdffc84b37c0b Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Sun, 7 Apr 2013 09:29:51 -0700 Subject: [PATCH] --- yaml --- r: 365583 b: refs/heads/master c: b9777cf8d7c7854c3c38bd6621d993b85c2afcdf h: refs/heads/master i: 365581: 29c5be5ff8e6e89174eff785f4d16bdafa06eb4f 365579: 2363424072b155936cefdd9e2ea39c8150e3a3da 365575: 42d5a3eb351e2a03a8d20166027c801ee434da31 365567: 55e7eb53ea9e706291ead5ae443d6e1e1dbeb99c v: v3 --- [refs] | 2 +- trunk/include/linux/cgroup.h | 5 ----- trunk/kernel/cgroup.c | 9 +++------ 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/[refs] b/[refs] index d4b69dd000b7..f53a29a79f3d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7ae1bad99e27b8838d480a24edf4646a2fc547df +refs/heads/master: b9777cf8d7c7854c3c38bd6621d993b85c2afcdf diff --git a/trunk/include/linux/cgroup.h b/trunk/include/linux/cgroup.h index f8eb01d75ddc..63deb70f3149 100644 --- a/trunk/include/linux/cgroup.h +++ b/trunk/include/linux/cgroup.h @@ -30,10 +30,7 @@ struct css_id; extern int cgroup_init_early(void); extern int cgroup_init(void); -extern void cgroup_lock(void); extern int cgroup_lock_is_held(void); -extern bool cgroup_lock_live_group(struct cgroup *cgrp); -extern void cgroup_unlock(void); extern void cgroup_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); @@ -693,8 +690,6 @@ struct task_struct *cgroup_iter_next(struct cgroup *cgrp, struct cgroup_iter *it); void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it); int cgroup_scan_tasks(struct cgroup_scanner *scan); -int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk, - bool threadgroup); int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from); diff --git a/trunk/kernel/cgroup.c b/trunk/kernel/cgroup.c index ae7617095dec..32ca0304452f 100644 --- a/trunk/kernel/cgroup.c +++ b/trunk/kernel/cgroup.c @@ -336,7 +336,7 @@ static inline struct cftype *__d_cft(struct dentry *dentry) * On success, returns true; the lock should be later released with * cgroup_unlock(). On failure returns false with no lock held. */ -bool cgroup_lock_live_group(struct cgroup *cgrp) +static bool cgroup_lock_live_group(struct cgroup *cgrp) { mutex_lock(&cgroup_mutex); if (cgroup_is_removed(cgrp)) { @@ -345,7 +345,6 @@ bool cgroup_lock_live_group(struct cgroup *cgrp) } return true; } -EXPORT_SYMBOL_GPL(cgroup_lock_live_group); /* the list of cgroups eligible for automatic release. Protected by * release_list_lock */ @@ -824,22 +823,20 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task, * cgroup_lock - lock out any changes to cgroup structures * */ -void cgroup_lock(void) +static void cgroup_lock(void) { mutex_lock(&cgroup_mutex); } -EXPORT_SYMBOL_GPL(cgroup_lock); /** * cgroup_unlock - release lock on cgroup changes * * Undo the lock taken in a previous cgroup_lock() call. */ -void cgroup_unlock(void) +static void cgroup_unlock(void) { mutex_unlock(&cgroup_mutex); } -EXPORT_SYMBOL_GPL(cgroup_unlock); /* * A couple of forward declarations required, due to cyclic reference loop: