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

Function cache_free

freebsd/kern/vfs_cache.c:674–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674static void
675cache_free(struct namecache *ncp)
676{
677
678 MPASS(ncp != NULL);
679 if ((ncp->nc_flag & NCF_DVDROP) != 0) {
680 cache_drop_vnode(ncp->nc_dvp);
681 }
682 cache_free_uma(ncp);
683 atomic_subtract_long(&numcache, 1);
684}
685
686static void
687cache_free_batch(struct cache_freebatch *batch)

Callers 6

cache_neg_evictFunction · 0.70
cache_remove_cnpFunction · 0.70
cache_lookup_dotdotFunction · 0.70
cache_lookup_fallbackFunction · 0.70
cache_enter_dotdot_prepFunction · 0.70
cache_enter_timeFunction · 0.70

Calls 3

cache_drop_vnodeFunction · 0.85
cache_free_umaFunction · 0.85
atomic_subtract_longFunction · 0.85

Tested by

no test coverage detected