]> git.baikalelectronics.ru Git - kernel.git/commit
fs/dcache.c: Save one 32-bit multiply in dcache lookup
authorGeorge Spelvin <linux@sciencehorizons.net>
Fri, 10 Jun 2016 04:22:12 +0000 (00:22 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 11 Jun 2016 21:57:56 +0000 (14:57 -0700)
commit55029e08c08e9a5cf31bb9a10fec4757c29a1dce
tree6bcfde71273dc055ba28abedd8305d6a829639f5
parente26a7fc74731e10a7e8100c4fd00db2d1f4d3102
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: George Spelvin <linux@sciencehorizons.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c
include/linux/stringhash.h