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

Function zap_remove_by_dnode

freebsd/contrib/openzfs/module/zfs/zap_micro.c:1435–1447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433}
1434
1435int
1436zap_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
1449int
1450zap_remove_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,

Callers

nothing calls this directly

Calls 3

zap_lockdir_by_dnodeFunction · 0.85
zap_remove_implFunction · 0.85
zap_unlockdirFunction · 0.85

Tested by

no test coverage detected