MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dbuf_add_ref

Function dbuf_add_ref

freebsd/contrib/openzfs/module/zfs/dbuf.c:3547–3552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3545
3546#pragma weak dmu_buf_add_ref = dbuf_add_ref
3547void
3548dbuf_add_ref(dmu_buf_impl_t *db, void *tag)
3549{
3550 int64_t holds = zfs_refcount_add(&db->db_holds, tag);
3551 VERIFY3S(holds, >, 1);
3552}
3553
3554#pragma weak dmu_buf_try_add_ref = dbuf_try_add_ref
3555boolean_t

Callers 6

dbuf_read_implFunction · 0.85
dbuf_dirtyFunction · 0.85
dbuf_findbpFunction · 0.85
dbuf_createFunction · 0.85
dnode_hold_implFunction · 0.85

Calls 1

zfs_refcount_addFunction · 0.85

Tested by

no test coverage detected