ddt: lift dedup stats out to separate file

We want to add other kinds of dedup-related objects and keep stats for
them. This makes those functions easier to use from outside ddt.c.

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
This commit is contained in:
Rob Norris
2023-05-16 13:30:26 +10:00
committed by Brian Behlendorf
parent 0cb1ef60ae
commit 5973854153
6 changed files with 207 additions and 171 deletions
+1
View File
@@ -326,6 +326,7 @@ ZFS_OBJS := \
dbuf.o \
dbuf_stats.o \
ddt.o \
ddt_stats.o \
ddt_zap.o \
dmu.o \
dmu_diff.o \