mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
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>
This commit is contained in:
parent
a24efe62dd
commit
a39bc51691
2 changed files with 13 additions and 13 deletions
|
@ -493,7 +493,7 @@ void reset_files_struct(struct task_struct *tsk, struct files_struct *files)
|
|||
}
|
||||
EXPORT_SYMBOL(reset_files_struct);
|
||||
|
||||
static inline void __exit_files(struct task_struct *tsk)
|
||||
static void __exit_files(struct task_struct *tsk)
|
||||
{
|
||||
struct files_struct * files = tsk->files;
|
||||
|
||||
|
@ -510,7 +510,7 @@ void exit_files(struct task_struct *tsk)
|
|||
__exit_files(tsk);
|
||||
}
|
||||
|
||||
static inline void __put_fs_struct(struct fs_struct *fs)
|
||||
static void __put_fs_struct(struct fs_struct *fs)
|
||||
{
|
||||
/* No need to hold fs->lock if we are killing it */
|
||||
if (atomic_dec_and_test(&fs->count)) {
|
||||
|
@ -531,7 +531,7 @@ void put_fs_struct(struct fs_struct *fs)
|
|||
__put_fs_struct(fs);
|
||||
}
|
||||
|
||||
static inline void __exit_fs(struct task_struct *tsk)
|
||||
static void __exit_fs(struct task_struct *tsk)
|
||||
{
|
||||
struct fs_struct * fs = tsk->fs;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue