Commit 5e238ceb authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

[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: default avatarOleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6ba7b420
...@@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(exit_fs); ...@@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(exit_fs);
* Turn us into a lazy TLB process if we * Turn us into a lazy TLB process if we
* aren't already.. * 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; struct mm_struct *mm = tsk->mm;
...@@ -506,11 +506,6 @@ static inline void __exit_mm(struct task_struct * tsk) ...@@ -506,11 +506,6 @@ static inline void __exit_mm(struct task_struct * tsk)
mmput(mm); 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) 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) ...@@ -811,7 +806,7 @@ fastcall NORET_TYPE void do_exit(long code)
group_dead = atomic_dec_and_test(&tsk->signal->live); group_dead = atomic_dec_and_test(&tsk->signal->live);
if (group_dead) if (group_dead)
acct_process(code); acct_process(code);
__exit_mm(tsk); exit_mm(tsk);
exit_sem(tsk); exit_sem(tsk);
__exit_files(tsk); __exit_files(tsk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment