diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-10-19 02:41:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:56 -0400 |
commit | a39bc51691a0c8880b7d10fa7c2f034f3ba9a037 (patch) | |
tree | 6f74815a32b5344cbfc2b3eca6def411308c06fb /kernel/exit.c | |
parent | a24efe62dd165be7d03431cf936ae17d345fed69 (diff) |
Uninline fork.c/exit.c
Save ~650 bytes here.
add/remove: 4/0 grow/shrink: 0/7 up/down: 430/-1088 (-658)
function old new delta
__copy_fs_struct - 202 +202
__put_fs_struct - 112 +112
__exit_fs - 58 +58
__exit_files - 58 +58
exit_files 58 2 -56
put_fs_struct 112 5 -107
exit_fs 161 2 -159
sys_unshare 774 590 -184
copy_process 4031 3840 -191
do_exit 1791 1597 -194
copy_fs_struct 202 5 -197
No difference in lmbench lat_proc tests on 2-way Opteron 246.
Smaaaal degradation on UP P4 (within errors).
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 7dab2defec63..f1aec27f1df0 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -493,7 +493,7 @@ void reset_files_struct(struct task_struct *tsk, struct files_struct *files) | |||
493 | } | 493 | } |
494 | EXPORT_SYMBOL(reset_files_struct); | 494 | EXPORT_SYMBOL(reset_files_struct); |
495 | 495 | ||
496 | static inline void __exit_files(struct task_struct *tsk) | 496 | static void __exit_files(struct task_struct *tsk) |
497 | { | 497 | { |
498 | struct files_struct * files = tsk->files; | 498 | struct files_struct * files = tsk->files; |
499 | 499 | ||
@@ -510,7 +510,7 @@ void exit_files(struct task_struct *tsk) | |||
510 | __exit_files(tsk); | 510 | __exit_files(tsk); |
511 | } | 511 | } |
512 | 512 | ||
513 | static inline void __put_fs_struct(struct fs_struct *fs) | 513 | static void __put_fs_struct(struct fs_struct *fs) |
514 | { | 514 | { |
515 | /* No need to hold fs->lock if we are killing it */ | 515 | /* No need to hold fs->lock if we are killing it */ |
516 | if (atomic_dec_and_test(&fs->count)) { | 516 | if (atomic_dec_and_test(&fs->count)) { |
@@ -531,7 +531,7 @@ void put_fs_struct(struct fs_struct *fs) | |||
531 | __put_fs_struct(fs); | 531 | __put_fs_struct(fs); |
532 | } | 532 | } |
533 | 533 | ||
534 | static inline void __exit_fs(struct task_struct *tsk) | 534 | static void __exit_fs(struct task_struct *tsk) |
535 | { | 535 | { |
536 | struct fs_struct * fs = tsk->fs; | 536 | struct fs_struct * fs = tsk->fs; |
537 | 537 | ||