]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fs/inode.c tweaks
authorAndreas Mohr <andi@rhlx01.fht-esslingen.de>
Mon, 2 Oct 2006 09:17:17 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:14 +0000 (07:57 -0700)
commit69d8f1453f430fcc49168a0b7f6c3b660540986c
tree79817438dc5b3e004ba91d593228dc8aefcda3e8
parentbf4f44cac098ff0a67fb4bbb805ff91ecec08ccf
[PATCH] fs/inode.c tweaks

Only touch inode's i_mtime and i_ctime to make them equal to "now" in case
they aren't yet (don't just update timestamp unconditionally).  Uninline
the hash function to save 259 Bytes.

This tiny inode change which may improve cache behaviour also shaves off 8
Bytes from file_update_time() on i386.

Included a tiny codestyle cleanup, too.

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/inode.c