]> git.proxmox.com Git - mirror_zfs.git/commit
ddt: compare keys, not entries
authorRob Norris <rob.norris@klarasystems.com>
Fri, 9 Jun 2023 00:14:42 +0000 (10:14 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Feb 2024 19:45:00 +0000 (11:45 -0800)
commit0cb1ef60ae26d855e8f4a959fff66a7693766ea3
treeb3b4a31c9db8461481a7116c195bc634a08b228f
parent5c4cc21fd4e0d15afc3f94895f26efabe80908c6
ddt: compare keys, not entries

We're about to have different kinds of things that we'll compare on key,
so generalise this function to support that.

(It actually worked fine because of the way the casts work out, but it
requires the key to be at the start of the object so the cast through
ddt_entry_t works, and even then it reads strangely for anything that's
not a ddt_entry_t).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: iXsystems, Inc.
Closes #15887
cmd/zdb/zdb.c
include/sys/ddt.h
module/zfs/ddt.c