| 1433 | } |
| 1434 | |
| 1435 | int |
| 1436 | zap_remove_by_dnode(dnode_t *dn, const char *name, dmu_tx_t *tx) |
| 1437 | { |
| 1438 | zap_t *zap; |
| 1439 | int err; |
| 1440 | |
| 1441 | err = zap_lockdir_by_dnode(dn, tx, RW_WRITER, TRUE, FALSE, FTAG, &zap); |
| 1442 | if (err) |
| 1443 | return (err); |
| 1444 | err = zap_remove_impl(zap, name, 0, tx); |
| 1445 | zap_unlockdir(zap, FTAG); |
| 1446 | return (err); |
| 1447 | } |
| 1448 | |
| 1449 | int |
| 1450 | zap_remove_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key, |
nothing calls this directly
no test coverage detected