]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'salted-string-hash'
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Jul 2016 19:26:31 +0000 (12:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Jul 2016 19:26:31 +0000 (12:26 -0700)
commit7423e0ae62e6071a4bbf5eadca4bbe3700ac176e
tree8a3e3022c084f7c7c1eebc494a1b94f0ee0d5cae
parentaa077acda504fac27822f5726e79f1a25ffbbb04
parent55029e08c08e9a5cf31bb9a10fec4757c29a1dce
Merge branch 'salted-string-hash'

This changes the vfs dentry hashing to mix in the parent pointer at the
_beginning_ of the hash, rather than at the end.

That actually improves both the hash and the code generation, because we
can move more of the computation to the "static" part of the dcache
setup, and do less at lookup runtime.

It turns out that a lot of other hash users also really wanted to mix in
a base pointer as a 'salt' for the hash, and so the slightly extended
interface ends up working well for other cases too.

Users that want a string hash that is purely about the string pass in a
'salt' pointer of NULL.

* merge branch 'salted-string-hash':
  fs/dcache.c: Save one 32-bit multiply in dcache lookup
  vfs: make the string hashes salt the hash
drivers/staging/lustre/lustre/llite/statahead.c
fs/autofs4/waitq.c
fs/cifs/dir.c
fs/dcache.c
fs/fuse/dir.c
fs/logfs/dir.c
fs/nfs/dir.c
net/core/dev.c