From 68a80a8b877f5a01f4d778d22db26b788232000c Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 3 Aug 2009 16:20:27 -0700 Subject: [PATCH] refcount_add() mistakenly moved to ASSERT() breaks --disable-debug builds. --- module/zfs/dbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index ff4cedd42c..86a6287f35 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -1794,8 +1794,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