* Return held dnode if the object is allocated, NULL if not. */
| 1571 | * Return held dnode if the object is allocated, NULL if not. |
| 1572 | */ |
| 1573 | int |
| 1574 | dnode_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 |
no test coverage detected