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

Function vdev_cache_fini

freebsd/contrib/openzfs/module/zfs/vdev_cache.c:394–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void
395vdev_cache_fini(vdev_t *vd)
396{
397 vdev_cache_t *vc = &vd->vdev_cache;
398
399 vdev_cache_purge(vd);
400
401 avl_destroy(&vc->vc_offset_tree);
402 avl_destroy(&vc->vc_lastused_tree);
403
404 mutex_destroy(&vc->vc_lock);
405}
406
407void
408vdev_cache_stat_init(void)

Callers 1

vdev_freeFunction · 0.85

Calls 3

vdev_cache_purgeFunction · 0.85
avl_destroyFunction · 0.85
mutex_destroyFunction · 0.85

Tested by

no test coverage detected