554828ee0d
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 |
||
---|---|---|
.. | ||
compr.c | ||
dev_bdev.c | ||
dev_mtd.c | ||
dir.c | ||
file.c | ||
gc.c | ||
inode.c | ||
journal.c | ||
Kconfig | ||
logfs_abi.h | ||
logfs.h | ||
Makefile | ||
readwrite.c | ||
segment.c | ||
super.c |