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

Function dnode_hold

freebsd/contrib/openzfs/module/zfs/dnode.c:1573–1578  ·  view source on GitHub ↗

* Return held dnode if the object is allocated, NULL if not. */

Source from the content-addressed store, hash-verified

1571 * Return held dnode if the object is allocated, NULL if not.
1572 */
1573int
1574dnode_hold(objset_t *os, uint64_t object, void *tag, dnode_t **dnp)
1575{
1576 return (dnode_hold_impl(os, object, DNODE_MUST_BE_ALLOCATED, 0, tag,
1577 dnp));
1578}
1579
1580/*
1581 * Can only add a reference if there is already at least one

Callers 15

dmu_buf_hold_arrayFunction · 0.85
dmu_tx_hold_object_implFunction · 0.85
receive_objectFunction · 0.85
flush_write_batch_implFunction · 0.85
dbuf_find_bonusFunction · 0.85
send_reader_threadFunction · 0.85
dmu_buf_hold_noreadFunction · 0.85
dmu_rm_spillFunction · 0.85
dmu_bonus_holdFunction · 0.85
dmu_buf_hold_arrayFunction · 0.85
dmu_prefetchFunction · 0.85
dmu_free_long_rangeFunction · 0.85

Calls 1

dnode_hold_implFunction · 0.85

Tested by

no test coverage detected