lkml.org 
[lkml]   [2004]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] trivial, uninline/kill __exit_mm()
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.050 / U:0.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site