summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-04-14 12:43:15 -0600
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-14 17:43:57 -0700
commit64541d19702cfdb7ea946fdc20faee849f6874b1 (patch)
tree0eb2fbcac51359b590b9692b112fe662fee49a4a /kernel/fork.c
parent1f60245479ca6d4d3f2cf4a47c7dd18caf5afdf2 (diff)
downloadlwn-64541d19702cfdb7ea946fdc20faee849f6874b1.tar.gz
lwn-64541d19702cfdb7ea946fdc20faee849f6874b1.zip
[PATCH] kill unushed __put_task_struct_cb
Somehow in the midst of dotting i's and crossing t's during the merge up to rc1 we wound up keeping __put_task_struct_cb when it should have been killed as it no longer has any users. Sorry I probably should have caught this while it was still in the -mm tree. Having the old code there gets confusing when reading through the code and trying to understand what is happening. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 3384eb89cb1c..54b15f8cda53 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -124,12 +124,6 @@ void __put_task_struct(struct task_struct *tsk)
free_task(tsk);
}
-void __put_task_struct_cb(struct rcu_head *rhp)
-{
- struct task_struct *tsk = container_of(rhp, struct task_struct, rcu);
- __put_task_struct(tsk);
-}
-
void __init fork_init(unsigned long mempages)
{
#ifndef __HAVE_ARCH_TASK_STRUCT_ALLOCATOR