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

Function cache_neg_init

freebsd/kern/vfs_cache.c:1089–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087 "Number of hot negative entries");
1088
1089static void
1090cache_neg_init(struct namecache *ncp)
1091{
1092 struct negstate *ns;
1093
1094 ncp->nc_flag |= NCF_NEGATIVE;
1095 ns = NCP2NEGSTATE(ncp);
1096 ns->neg_flag = 0;
1097 ns->neg_hit = 0;
1098 counter_u64_add(neg_created, 1);
1099}
1100
1101#define CACHE_NEG_PROMOTION_THRESH 2
1102

Callers 1

cache_enter_timeFunction · 0.85

Calls 2

NCP2NEGSTATEFunction · 0.85
counter_u64_addFunction · 0.50

Tested by

no test coverage detected