aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2023-05-16 13:30:26 +1000
committerBrian Behlendorf <[email protected]>2024-02-15 11:45:05 -0800
commit59738541537a859a4558bd34c0e1784fbe28bbcd (patch)
treee8a0e7666224f365458803b44f8781c746913c3b /include
parent0cb1ef60ae26d855e8f4a959fff66a7693766ea3 (diff)
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 <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Diffstat (limited to 'include')
-rw-r--r--include/sys/ddt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/ddt.h b/include/sys/ddt.h
index e6bbaa10e..a15354057 100644
--- a/include/sys/ddt.h
+++ b/include/sys/ddt.h
@@ -204,6 +204,7 @@ extern void ddt_phys_free(ddt_t *ddt, ddt_key_t *ddk, ddt_phys_t *ddp,
extern ddt_phys_t *ddt_phys_select(const ddt_entry_t *dde, const blkptr_t *bp);
extern uint64_t ddt_phys_total_refcnt(const ddt_entry_t *dde);
+extern void ddt_stat_update(ddt_t *ddt, ddt_entry_t *dde, uint64_t neg);
extern void ddt_stat_add(ddt_stat_t *dst, const ddt_stat_t *src, uint64_t neg);
extern void ddt_histogram_add(ddt_histogram_t *dst, const ddt_histogram_t *src);