summaryrefslogtreecommitdiffstats
path: root/include/sys/ddt.h
diff options
context:
space:
mode:
authorJohn Layman <[email protected]>2013-11-19 16:34:46 -0500
committerBrian Behlendorf <[email protected]>2014-01-07 10:33:11 -0800
commitecf3d9b8e63e5659269e15db527380c65780f71a (patch)
tree93c1a7b7cf0c66b14ae4a63a6511a9f87a62baa1 /include/sys/ddt.h
parent4dad7d91e24875f077e26808fec900224e97dcb2 (diff)
Add ddt, ddt_entry, and l2arc_hdr caches
Back the allocations for ddt tables+entries and l2arc headers with kmem caches. This will reduce the cost of allocating these commonly used structures and allow for greater visibility of them through the /proc/spl/kmem/slab interface. Signed-off-by: John Layman <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1893
Diffstat (limited to 'include/sys/ddt.h')
-rw-r--r--include/sys/ddt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/ddt.h b/include/sys/ddt.h
index ed41315cb..3befcb844 100644
--- a/include/sys/ddt.h
+++ b/include/sys/ddt.h
@@ -216,6 +216,8 @@ extern void ddt_decompress(uchar_t *src, void *dst, size_t s_len, size_t d_len);
extern ddt_t *ddt_select(spa_t *spa, const blkptr_t *bp);
extern void ddt_enter(ddt_t *ddt);
extern void ddt_exit(ddt_t *ddt);
+extern void ddt_init(void);
+extern void ddt_fini(void);
extern ddt_entry_t *ddt_lookup(ddt_t *ddt, const blkptr_t *bp, boolean_t add);
extern void ddt_prefetch(spa_t *spa, const blkptr_t *bp);
extern void ddt_remove(ddt_t *ddt, ddt_entry_t *dde);