mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
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:
committed by
Brian Behlendorf
parent
0ae4460c61
commit
a877b39624
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user