cityhash: replace invocations with specialized versions when possible

So that we can get actual benefit from last commit.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #16131
Closes #16483
This commit is contained in:
Shengqi Chen
2024-09-07 22:07:14 +08:00
committed by Brian Behlendorf
parent 0ae4460c61
commit a877b39624
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -405,13 +405,13 @@ dmu_objset_byteswap(void *buf, size_t size)
}
/*
* Runs cityhash4 on the objset_t pointer and the object number.
* Runs cityhash on the objset_t pointer and the object number.
*/
static uint64_t
dnode_hash(const objset_t *os, uint64_t obj)
{
uintptr_t osv = (uintptr_t)os;
return (cityhash4((uint64_t)osv, obj, 0, 0));
return (cityhash2((uint64_t)osv, obj));
}
static unsigned int