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

Function cache_ncp_invalidate

freebsd/kern/vfs_cache.c:242–250  ·  view source on GitHub ↗

* Mark an entry as invalid. * * This is called before it starts getting deconstructed. */

Source from the content-addressed store, hash-verified

240 * This is called before it starts getting deconstructed.
241 */
242static void
243cache_ncp_invalidate(struct namecache *ncp)
244{
245
246 KASSERT((ncp->nc_flag & NCF_INVALID) == 0,
247 ("%s: entry %p already invalid", __func__, ncp));
248 atomic_store_char(&ncp->nc_flag, ncp->nc_flag | NCF_INVALID);
249 atomic_thread_fence_rel();
250}
251
252/*
253 * Check whether the entry can be safely used.

Callers 1

cache_zap_lockedFunction · 0.85

Calls 1

atomic_thread_fence_relFunction · 0.50

Tested by

no test coverage detected