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

Function cache_lock_buckets_cel

freebsd/kern/vfs_cache.c:2124–2140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2122}
2123
2124static void
2125cache_lock_buckets_cel(struct celockstate *cel, struct mtx *blp1,
2126 struct mtx *blp2)
2127{
2128
2129 MPASS(cel->blp[0] == NULL);
2130 MPASS(cel->blp[1] == NULL);
2131
2132 cache_sort_vnodes(&blp1, &blp2);
2133
2134 if (blp1 != NULL) {
2135 mtx_lock(blp1);
2136 cel->blp[0] = blp1;
2137 }
2138 mtx_lock(blp2);
2139 cel->blp[1] = blp2;
2140}
2141
2142static void
2143cache_unlock_buckets_cel(struct celockstate *cel)

Callers 2

cache_enter_lockFunction · 0.85
cache_enter_lock_ddFunction · 0.85

Calls 1

mtx_lockFunction · 0.70

Tested by

no test coverage detected