• Linus Torvalds's avatar
    vfs: make the string hashes salt the hash · 8387ff25
    Linus Torvalds authored
    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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    8387ff25
Name
Last commit
Last update
..
Kconfig Loading commit data...
LICENCE Loading commit data...
Makefile Loading commit data...
README.Locking Loading commit data...
TODO Loading commit data...
acl.c Loading commit data...
acl.h Loading commit data...
background.c Loading commit data...
build.c Loading commit data...
compr.c Loading commit data...
compr.h Loading commit data...
compr_lzo.c Loading commit data...
compr_rtime.c Loading commit data...
compr_rubin.c Loading commit data...
compr_zlib.c Loading commit data...
debug.c Loading commit data...
debug.h Loading commit data...
dir.c Loading commit data...
erase.c Loading commit data...
file.c Loading commit data...
fs.c Loading commit data...
gc.c Loading commit data...
ioctl.c Loading commit data...
jffs2_fs_i.h Loading commit data...
jffs2_fs_sb.h Loading commit data...
malloc.c Loading commit data...
nodelist.c Loading commit data...
nodelist.h Loading commit data...
nodemgmt.c Loading commit data...
os-linux.h Loading commit data...
read.c Loading commit data...
readinode.c Loading commit data...
scan.c Loading commit data...
security.c Loading commit data...
summary.c Loading commit data...
summary.h Loading commit data...
super.c Loading commit data...
symlink.c Loading commit data...
wbuf.c Loading commit data...
write.c Loading commit data...
writev.c Loading commit data...
xattr.c Loading commit data...
xattr.h Loading commit data...
xattr_trusted.c Loading commit data...
xattr_user.c Loading commit data...