aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2021-10-11 10:54:39 -0700
committerGitHub <[email protected]>2021-10-11 10:54:39 -0700
commit280d0f0ce45aeb5832038c589deabd1bf53bcd6c (patch)
treeae5ae1c3ef199710913bc73498de29b386b4f8ad /module
parent648445e0078ee6190d9546049e4339d8f9711a35 (diff)
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. Reviewed-by: Olaf Faaland <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #12613
Diffstat (limited to 'module')
-rw-r--r--module/zfs/refcount.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c
index 354e021d9..35a379dde 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");