]> git.proxmox.com Git - mirror_zfs.git/commit
ddt: remove DDE_GET_NDVAS macro
authorRob Norris <rob.norris@klarasystems.com>
Mon, 3 Jul 2023 05:25:06 +0000 (15:25 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Feb 2024 19:45:10 +0000 (11:45 -0800)
commit909006049f97723140425ea3257300cae45e2866
treeeda3b620c69a09b5bfe1872e869bff2ced717389
parent59738541537a859a4558bd34c0e1784fbe28bbcd
ddt: remove DDE_GET_NDVAS macro

It was a weird and confusing name, because it wasn't actually returning
the number of DVAs in the entry (as in, in the value/phys part) but the
maximum number of possible DVAs in a BP generated from the entry, based
on the encrypt bit in the key. This is unlike the similarly named
BP_GET_NDVAS, which really does return the number of DVAs.

Since its only used in this one place, and for a specific purpose, it
seemed more sensible to just write it in-place and remove the name.

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
include/sys/ddt.h
module/zfs/ddt_stats.c