Skip to content
Commit 703b5faf authored by George Spelvin's avatar George Spelvin Committed by Linus Torvalds
Browse files

fs/dcache.c: Save one 32-bit multiply in dcache lookup



Noe that we're mixing in the parent pointer earlier, we
don't need to use hash_32() to mix its bits.  Instead, we can
just take the msbits of the hash value directly.

For those applications which use the partial_name_hash(),
move the multiply to end_name_hash.

Signed-off-by: default avatarGeorge Spelvin <linux@sciencehorizons.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8387ff25
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment