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

Function cache_has_entries

freebsd/kern/vfs_cache.c:2665–2673  ·  view source on GitHub ↗

* Opportunistic check to see if there is anything to do. */

Source from the content-addressed store, hash-verified

2663 * Opportunistic check to see if there is anything to do.
2664 */
2665static bool
2666cache_has_entries(struct vnode *vp)
2667{
2668
2669 if (LIST_EMPTY(&vp->v_cache_src) && TAILQ_EMPTY(&vp->v_cache_dst) &&
2670 atomic_load_ptr(&vp->v_cache_dd) == NULL)
2671 return (false);
2672 return (true);
2673}
2674
2675void
2676cache_purge(struct vnode *vp)

Callers 3

cache_purgeFunction · 0.85
cache_purge_vgoneFunction · 0.85
cache_purgevfsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected