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

Function key_mapping_add_ref

freebsd/contrib/openzfs/module/zfs/dsl_crypt.c:939–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939void
940key_mapping_add_ref(dsl_key_mapping_t *km, void *tag)
941{
942 ASSERT3U(zfs_refcount_count(&km->km_refcnt), >=, 1);
943 zfs_refcount_add(&km->km_refcnt, tag);
944}
945
946/*
947 * The locking here is a little tricky to ensure we don't cause unnecessary

Callers 1

dsl_dataset_dirtyFunction · 0.85

Calls 2

zfs_refcount_countFunction · 0.85
zfs_refcount_addFunction · 0.85

Tested by

no test coverage detected