HomeFreeBSD

ddt: remove DDE_GET_NDVAS macro

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 3 2023, 5:25 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 15 2024, 7:45 PM
Parents
rG59738541537a: ddt: lift dedup stats out to separate file
Branches
Unknown
Tags
Unknown