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

Function zap_remove_norm

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

Source from the content-addressed store, hash-verified

1418}
1419
1420int
1421zap_remove_norm(objset_t *os, uint64_t zapobj, const char *name,
1422 matchtype_t mt, dmu_tx_t *tx)
1423{
1424 zap_t *zap;
1425 int err;
1426
1427 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, FALSE, FTAG, &zap);
1428 if (err)
1429 return (err);
1430 err = zap_remove_impl(zap, name, mt, tx);
1431 zap_unlockdir(zap, FTAG);
1432 return (err);
1433}
1434
1435int
1436zap_remove_by_dnode(dnode_t *dn, const char *name, dmu_tx_t *tx)

Callers 5

zfs_dropnameFunction · 0.85
zfs_dropnameFunction · 0.85
dsl_dataset_snap_removeFunction · 0.85
zap_removeFunction · 0.85

Calls 3

zap_lockdirFunction · 0.85
zap_remove_implFunction · 0.85
zap_unlockdirFunction · 0.85

Tested by

no test coverage detected