From 07420929b6a32b13e79c6487481bd494503da7ad Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 30 Sep 2021 10:23:31 -0700 Subject: [PATCH] Export minimal zfs_refcount interfaces Lustre makes light use of the zfs_refcount interfaces which isn't a problem when using a non-debug build of OpenZFS. However, when debugging is enabled the required symbols are not exported. Signed-off-by: Brian Behlendorf --- module/zfs/refcount.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c index 354e021d9d26..35a379dded69 100644 --- a/module/zfs/refcount.c +++ b/module/zfs/refcount.c @@ -318,6 +318,14 @@ zfs_refcount_not_held(zfs_refcount_t *rc, const void *holder) return (B_TRUE); } +EXPORT_SYMBOL(zfs_refcount_create); +EXPORT_SYMBOL(zfs_refcount_destroy); +EXPORT_SYMBOL(zfs_refcount_is_zero); +EXPORT_SYMBOL(zfs_refcount_count); +EXPORT_SYMBOL(zfs_refcount_add); +EXPORT_SYMBOL(zfs_refcount_remove); +EXPORT_SYMBOL(zfs_refcount_held); + /* BEGIN CSTYLED */ ZFS_MODULE_PARAM(zfs, ,reference_tracking_enable, INT, ZMOD_RW, "Track reference holders to refcount_t objects");