]> err.no Git - linux-2.6/commit
[PATCH] dcache: Add helper d_hash_and_lookup
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 31 Mar 2006 10:31:43 +0000 (02:31 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:19:00 +0000 (12:19 -0800)
commit3e7e241f8c5c87cc3685364feface081c9fa3648
tree43ea46cfec4da31a505e93875feeac945bf906ce
parent92476d7fc0326a409ab1d3864a04093a6be9aca7
[PATCH] dcache: Add helper d_hash_and_lookup

It is very common to hash a dentry and then to call lookup.  If we take fs
specific hash functions into account the full hash logic can get ugly.
Further full_name_hash as an inline function is almost 100 bytes on x86 so
having a non-inline choice in some cases can measurably decrease code size.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/dcache.c
include/linux/dcache.h