git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove Chaos 4.x RPM support
[zfs.git]
/
module
/
zfs
/
zrlock.c
diff --git
a/module/zfs/zrlock.c
b/module/zfs/zrlock.c
index
ec94b08
..
84123f9
100644
(file)
--- a/
module/zfs/zrlock.c
+++ b/
module/zfs/zrlock.c
@@
-163,9
+163,11
@@
zrl_exit(zrlock_t *zrl)
int
zrl_refcount(zrlock_t *zrl)
{
int
zrl_refcount(zrlock_t *zrl)
{
+ int n;
+
ASSERT(zrl->zr_refcount > ZRL_DESTROYED);
ASSERT(zrl->zr_refcount > ZRL_DESTROYED);
-
int
n = (int)zrl->zr_refcount;
+ n = (int)zrl->zr_refcount;
return (n <= 0 ? 0 : n);
}
return (n <= 0 ? 0 : n);
}
@@
-192,3
+194,14
@@
zrl_owner(zrlock_t *zrl)
return (zrl->zr_owner);
}
#endif
return (zrl->zr_owner);
}
#endif
+
+#if defined(_KERNEL) && defined(HAVE_SPL)
+
+#ifdef ZFS_DEBUG
+EXPORT_SYMBOL(zrl_add_debug);
+#else
+EXPORT_SYMBOL(zrl_add);
+#endif
+EXPORT_SYMBOL(zrl_remove);
+
+#endif