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

Function cache_neg_insert

freebsd/kern/vfs_cache.c:1265–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1263}
1264
1265static void
1266cache_neg_insert(struct namecache *ncp)
1267{
1268 struct neglist *nl;
1269
1270 MPASS(ncp->nc_flag & NCF_NEGATIVE);
1271 cache_assert_bucket_locked(ncp);
1272 nl = NCP2NEGLIST(ncp);
1273 mtx_lock(&nl->nl_lock);
1274 TAILQ_INSERT_TAIL(&nl->nl_list, ncp, nc_dst);
1275 mtx_unlock(&nl->nl_lock);
1276 atomic_add_long(&numneg, 1);
1277}
1278
1279static void
1280cache_neg_remove(struct namecache *ncp)

Callers 1

cache_enter_timeFunction · 0.85

Calls 5

NCP2NEGLISTFunction · 0.85
atomic_add_longFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected