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

Function cache_free_uma

freebsd/kern/vfs_cache.c:626–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static void
627cache_free_uma(struct namecache *ncp)
628{
629 struct namecache_ts *ncp_ts;
630
631 if (__predict_false(ncp->nc_flag & NCF_TS)) {
632 ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
633 if (ncp->nc_nlen <= CACHE_PATH_CUTOFF)
634 uma_zfree_smr(cache_zone_small_ts, ncp_ts);
635 else
636 uma_zfree_smr(cache_zone_large_ts, ncp_ts);
637 } else {
638 if (ncp->nc_nlen <= CACHE_PATH_CUTOFF)
639 uma_zfree_smr(cache_zone_small, ncp);
640 else
641 uma_zfree_smr(cache_zone_large, ncp);
642 }
643}
644
645static struct namecache *
646cache_alloc(int len, bool ts)

Callers 2

cache_freeFunction · 0.85
cache_free_batchFunction · 0.85

Calls 1

uma_zfree_smrFunction · 0.85

Tested by

no test coverage detected