aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2005-01-04 05:38:55 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-04 05:38:55 -0800
commit5e238cebe52131f0b5880411694d3585fc5465ef (patch)
tree6ab416ddb1fbc524eded43ab1f128b84864a5aae /kernel
parent6ba7b420d6943a76ef777b2de26c37ad0daf212a (diff)
downloadhistory-5e238cebe52131f0b5880411694d3585fc5465ef.tar.gz
[PATCH] uninline/kill __exit_mm()
__exit_mm() is an inlined version of exit_mm(). This patch unifies them. Saves 356 byte in exit.o. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index f6b64f9e3dcc4c..dc7549cd7a5815 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(exit_fs);
* Turn us into a lazy TLB process if we
* aren't already..
*/
-static inline void __exit_mm(struct task_struct * tsk)
+void exit_mm(struct task_struct * tsk)
{
struct mm_struct *mm = tsk->mm;
@@ -506,11 +506,6 @@ static inline void __exit_mm(struct task_struct * tsk)
mmput(mm);
}
-void exit_mm(struct task_struct *tsk)
-{
- __exit_mm(tsk);
-}
-
static inline void choose_new_parent(task_t *p, task_t *reaper, task_t *child_reaper)
{
/*
@@ -811,7 +806,7 @@ fastcall NORET_TYPE void do_exit(long code)
group_dead = atomic_dec_and_test(&tsk->signal->live);
if (group_dead)
acct_process(code);
- __exit_mm(tsk);
+ exit_mm(tsk);
exit_sem(tsk);
__exit_files(tsk);