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

Function gbincore

freebsd/kern/vfs_subr.c:2418–2428  ·  view source on GitHub ↗

* Look up a buffer using the buffer tries. */

Source from the content-addressed store, hash-verified

2416 * Look up a buffer using the buffer tries.
2417 */
2418struct buf *
2419gbincore(struct bufobj *bo, daddr_t lblkno)
2420{
2421 struct buf *bp;
2422
2423 ASSERT_BO_LOCKED(bo);
2424 bp = BUF_PCTRIE_LOOKUP(&bo->bo_clean.bv_root, lblkno);
2425 if (bp != NULL)
2426 return (bp);
2427 return (BUF_PCTRIE_LOOKUP(&bo->bo_dirty.bv_root, lblkno));
2428}
2429
2430/*
2431 * Look up a buf using the buffer tries, without the bufobj lock. This relies

Callers 5

vfs_bio_clcheckFunction · 0.85
getblkxFunction · 0.85
flushbuflistFunction · 0.85
cluster_readFunction · 0.85
cluster_wbuildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected