[PATCH] get_empty_filp tweaks, inline epoll_init_file()
authorBenjamin LaHaise <bcrl@linux.intel.com>
Thu, 23 Mar 2006 11:01:03 +0000 (03:01 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:17 +0000 (07:38 -0800)
commit5a6b7951bfcca7f45f44269ea87417c74558daf8
treef9cc8b3f89c89802e81b37d77c6f698e373bfe51
parent0b2fcfdb8b4e7e379192f24ea2203163ddf5df1d
[PATCH] get_empty_filp tweaks, inline epoll_init_file()

Eliminate a handful of cache references by keeping current in a register
instead of reloading (helps x86) and avoiding the overhead of a function
call.  Inlining eventpoll_init_file() saves 24 bytes.  Also reorder file
initialization to make writes occur more sequentially.

Signed-off-by: Benjamin LaHaise <bcrl@linux.intel.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/eventpoll.c
fs/file_table.c
include/linux/eventpoll.h