Merge commit 'refs/top-bases/linux-have-libdiskmgt' into linux-have-libdiskmgt

This commit is contained in:
Brian Behlendorf 2009-08-03 16:29:11 -07:00
commit 3614351225
1 changed files with 1 additions and 2 deletions

View File

@ -1802,8 +1802,7 @@ dbuf_create_bonus(dnode_t *dn)
void void
dbuf_add_ref(dmu_buf_impl_t *db, void *tag) dbuf_add_ref(dmu_buf_impl_t *db, void *tag)
{ {
ASSERTV(int64_t holds = refcount_add(&db->db_holds, tag)); VERIFY(refcount_add(&db->db_holds, tag) > 1);
ASSERT(holds > 1);
} }
#pragma weak dmu_buf_rele = dbuf_rele #pragma weak dmu_buf_rele = dbuf_rele