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

Function dnode_free

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

Source from the content-addressed store, hash-verified

1719}
1720
1721void
1722dnode_free(dnode_t *dn, dmu_tx_t *tx)
1723{
1724 mutex_enter(&dn->dn_mtx);
1725 if (dn->dn_type == DMU_OT_NONE || dn->dn_free_txg) {
1726 mutex_exit(&dn->dn_mtx);
1727 return;
1728 }
1729 dn->dn_free_txg = tx->tx_txg;
1730 mutex_exit(&dn->dn_mtx);
1731
1732 dnode_setdirty(dn, tx);
1733}
1734
1735/*
1736 * Try to change the block size for the indicated dnode. This can only

Callers 1

dmu_object_freeFunction · 0.85

Calls 3

mutex_enterFunction · 0.85
mutex_exitFunction · 0.85
dnode_setdirtyFunction · 0.85

Tested by

no test coverage detected