HomeFreeBSD

ddt: compare keys, not entries

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Jun 9 2023, 12:14 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 15 2024, 7:45 PM
Parents
rG5c4cc21fd4e0: ddt_zap: standardise temp buffer allocations
Branches
Unknown
Tags
Unknown

Event Timeline