* [PATCH] trivial, uninline/kill __exit_mm()
@ 2004-12-26 10:39 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2004-12-26 10:39 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
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@tv-sign.ru>
--- 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-26 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-26 10:39 [PATCH] trivial, uninline/kill __exit_mm() Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®