From d751b12a9d927d71a1c584be25bf705bb8decda2 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 15 Jul 2019 16:11:55 -0700 Subject: [PATCH] Export dnode symbols External consumers such as Lustre require access to the dnode interfaces in order to correctly manipulate dnodes. Reviewed-by: James Simmons Reviewed-by: Olaf Faaland Reviewed-by: George Melikov Signed-off-by: Brian Behlendorf Issue #8994 Closes #9027 --- module/zfs/dnode.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index c06f614e1..5fd473303 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -2483,3 +2483,13 @@ out: return (error); } + +#if defined(_KERNEL) +EXPORT_SYMBOL(dnode_hold); +EXPORT_SYMBOL(dnode_rele); +EXPORT_SYMBOL(dnode_set_nlevels); +EXPORT_SYMBOL(dnode_set_blksz); +EXPORT_SYMBOL(dnode_free_range); +EXPORT_SYMBOL(dnode_evict_dbufs); +EXPORT_SYMBOL(dnode_evict_bonus); +#endif