aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/refcount.c
diff options
context:
space:
mode:
authorPaul Dagnelie <pcd@delphix.com>2019-06-19 16:48:13 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2019-06-19 16:48:12 +0000
commit30af21b02569ac192f52ce6e6511015f8a8d5729 (patch)
treee5f1091c2d3a6e511bbd2414782e490c18e0f59c /module/zfs/refcount.c
parentc1b5801bb5af0055e5f3d263beaa07026103e212 (diff)
downloadsrc-30af21b02569ac192f52ce6e6511015f8a8d5729.tar.gz
src-30af21b02569ac192f52ce6e6511015f8a8d5729.zip
Diffstat (limited to 'module/zfs/refcount.c')
-rw-r--r--module/zfs/refcount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c
index bcaa6d387539..89528e6d3637 100644
--- a/module/zfs/refcount.c
+++ b/module/zfs/refcount.c
@@ -86,7 +86,7 @@ zfs_refcount_destroy_many(zfs_refcount_t *rc, uint64_t number)
{
reference_t *ref;
- ASSERT(rc->rc_count == number);
+ ASSERT3U(rc->rc_count, ==, number);
while ((ref = list_head(&rc->rc_list))) {
list_remove(&rc->rc_list, ref);
kmem_cache_free(reference_cache, ref);
@@ -132,7 +132,7 @@ zfs_refcount_add_many(zfs_refcount_t *rc, uint64_t number, void *holder)
ref->ref_number = number;
}
mutex_enter(&rc->rc_mtx);
- ASSERT(rc->rc_count >= 0);
+ ASSERT3U(rc->rc_count, >=, 0);
if (rc->rc_tracked)
list_insert_head(&rc->rc_list, ref);
rc->rc_count += number;
@@ -155,7 +155,7 @@ zfs_refcount_remove_many(zfs_refcount_t *rc, uint64_t number, void *holder)
int64_t count;
mutex_enter(&rc->rc_mtx);
- ASSERT(rc->rc_count >= number);
+ ASSERT3U(rc->rc_count, >=, number);
if (!rc->rc_tracked) {
rc->rc_count -= number;