| 1719 | } |
| 1720 | |
| 1721 | void |
| 1722 | dnode_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 |
no test coverage detected