[PATCH] trivial, uninline/kill __exit_mm()

From: Oleg Nesterov
Date: Sun Dec 26 2004 - 04:37:51 EST


Hello.

__exit_mm() is an inlined version of exit_mm().
This patch unifies them.

Saves 356 byte in exit.o.

Oleg.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- 2.6.10/kernel/exit.c~ 2004-12-26 11:09:43.000000000 +0300
+++ 2.6.10/kernel/exit.c 2004-12-26 11:11:59.000000000 +0300
@@ -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
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)
{
/*
@@ -809,7 +804,7 @@ fastcall NORET_TYPE void do_exit(long co
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/