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

Function unique_remove

freebsd/contrib/openzfs/module/zfs/unique.c:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void
99unique_remove(uint64_t value)
100{
101 unique_t un_tofind;
102 unique_t *un;
103
104 un_tofind.un_value = value;
105 mutex_enter(&unique_mtx);
106 un = avl_find(&unique_avl, &un_tofind, NULL);
107 if (un != NULL) {
108 avl_remove(&unique_avl, un);
109 kmem_free(un, sizeof (unique_t));
110 }
111 mutex_exit(&unique_mtx);
112}

Callers 2

unique_createFunction · 0.85
dsl_dataset_evict_syncFunction · 0.85

Calls 5

mutex_enterFunction · 0.85
avl_findFunction · 0.85
avl_removeFunction · 0.85
mutex_exitFunction · 0.85
kmem_freeFunction · 0.50

Tested by

no test coverage detected