Skip to contentSkip to conversation

trivial, uninline/kill __exit_mm()

PATCH New Oleg Nesterov 1 participant 1 message Dec 26, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

kernel/exit.c renamed from kernel/exit.c~ +2 -7
@@ -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);