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 <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #12613
This commit is contained in:
parent
9f6943504a
commit
5a9994f5ae
|
@ -318,6 +318,14 @@ zfs_refcount_not_held(zfs_refcount_t *rc, const void *holder)
|
||||||
return (B_TRUE);
|
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 */
|
/* BEGIN CSTYLED */
|
||||||
ZFS_MODULE_PARAM(zfs, ,reference_tracking_enable, INT, ZMOD_RW,
|
ZFS_MODULE_PARAM(zfs, ,reference_tracking_enable, INT, ZMOD_RW,
|
||||||
"Track reference holders to refcount_t objects");
|
"Track reference holders to refcount_t objects");
|
||||||
|
|
Loading…
Reference in New Issue