]> git.proxmox.com Git - mirror_zfs.git/commit
Slightly improve dnode hash
authorAlexander Motin <mav@FreeBSD.org>
Wed, 1 May 2024 17:59:32 +0000 (13:59 -0400)
committerGitHub <noreply@github.com>
Wed, 1 May 2024 17:59:32 +0000 (10:59 -0700)
commit8fd3a5d02f3f6bad9e8e65b6aded694eae222bf2
treec9fd8d33730defe4b95d744bbe4fef4a6dc9a42f
parent051460b8b2bb78add2b7ed5255f7656a33be903a
Slightly improve dnode hash

As I understand just for being less predictable dnode hash includes
8 bits of objset pointer, starting at 6.  But since objset_t is
more than 1KB in size, its allocations are likely aligned to 2KB,
that means 11 lower bits provide no entropy. Just take the 8 bits
starting from 11.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16131
module/zfs/dmu_objset.c