summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zfs/dbuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c
index 65b14f536..0c8b8aaee 100644
--- a/module/zfs/dbuf.c
+++ b/module/zfs/dbuf.c
@@ -1802,8 +1802,7 @@ dbuf_create_bonus(dnode_t *dn)
void
dbuf_add_ref(dmu_buf_impl_t *db, void *tag)
{
- ASSERTV(int64_t holds = refcount_add(&db->db_holds, tag));
- ASSERT(holds > 1);
+ VERIFY(refcount_add(&db->db_holds, tag) > 1);
}
#pragma weak dmu_buf_rele = dbuf_rele