]> git.proxmox.com Git - mirror_zfs.git/commit
ddt: simplify entry load and flags
authorRob Norris <rob.norris@klarasystems.com>
Tue, 5 Dec 2023 03:28:39 +0000 (14:28 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Feb 2024 19:45:50 +0000 (11:45 -0800)
commit406562c56318a9d29a5e78a6e4bdee158902cd14
tree03f89be733159a1646e0e9708edb59c734c0defc
parent2cffddd405e0082b781999513321959d03834cc9
ddt: simplify entry load and flags

Only a single bit is needed to track entry state, and definitely not two
whole bytes. Some light refactoring in ddt_lookup() is needed to support
this, but it reads a lot better now.

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.c