linux/fs/ncpfs
Linus Torvalds 8387ff2577 vfs: make the string hashes salt the hash
We always mixed in the parent pointer into the dentry name hash, but we
did it late at lookup time.  It turns out that we can simplify that
lookup-time action by salting the hash with the parent pointer early
instead of late.

A few other users of our string hashes also wanted to mix in their own
pointers into the hash, and those are updated to use the same mechanism.

Hash users that don't have any particular initial salt can just use the
NULL pointer as a no-salt.

Cc: Vegard Nossum <vegard.nossum@oracle.com>
Cc: George Spelvin <linux@sciencehorizons.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-06-10 20:21:46 -07:00
..
dir.c vfs: make the string hashes salt the hash 2016-06-10 20:21:46 -07:00
file.c wrappers for ->i_mutex access 2016-01-22 18:04:28 -05:00
getopt.c
getopt.h
inode.c kmemcg: account certain kmem allocations to memcg 2016-01-14 16:00:49 -08:00
ioctl.c ncpfs: don't allow negative timeouts 2015-11-20 16:17:32 -08:00
Kconfig
Makefile
mmap.c
ncp_fs_i.h ncpfs: get rid of d_validate() nonsense 2015-01-25 23:16:26 -05:00
ncp_fs_sb.h
ncp_fs.h
ncplib_kernel.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
ncplib_kernel.h mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
ncpsign_kernel.c
ncpsign_kernel.h
sock.c
symlink.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00