HomeFreeBSD

ddt: introduce lightweight entry

Description

ddt: introduce lightweight entry

The idea here is that sometimes you need the contents of an entry with
no intent to modify it, and/or from a place where its difficult to get
hold of its originating ddt_t to know how to interpret it.

A lightweight entry contains everything you might need to "read" an
entry - its key, type and phys contents - but none of the extras for
modifying it or using it in a larger context. It also has the full
complement of phys slots, so it can represent any kind of dedup entry
without having to know the specific configuration of the table it came
from.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
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 #15893

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 3 2023, 12:16 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 16 2024, 7:02 PM
Parents
rGd17ab631a914: ddt: rework access to phys array slots
Branches
Unknown
Tags
Unknown