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

Function vdev_cache_purge

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

Source from the content-addressed store, hash-verified

364}
365
366void
367vdev_cache_purge(vdev_t *vd)
368{
369 vdev_cache_t *vc = &vd->vdev_cache;
370 vdev_cache_entry_t *ve;
371
372 mutex_enter(&vc->vc_lock);
373 while ((ve = avl_first(&vc->vc_offset_tree)) != NULL)
374 vdev_cache_evict(vc, ve);
375 mutex_exit(&vc->vc_lock);
376}
377
378void
379vdev_cache_init(vdev_t *vd)

Callers 2

vdev_closeFunction · 0.85
vdev_cache_finiFunction · 0.85

Calls 4

mutex_enterFunction · 0.85
avl_firstFunction · 0.85
vdev_cache_evictFunction · 0.85
mutex_exitFunction · 0.85

Tested by

no test coverage detected