From ecf3d9b8e63e5659269e15db527380c65780f71a Mon Sep 17 00:00:00 2001 From: John Layman Date: Tue, 19 Nov 2013 16:34:46 -0500 Subject: 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 Signed-off-by: Brian Behlendorf Closes #1893 --- include/sys/ddt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sys/ddt.h') 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); -- cgit v1.2.3