FreeBSD/sys/boot/common/bcache.c
/*
 * Insert a block into the cache.
 */
Insert a block into the cache.
Insert a block into the cache .
static void
bcache_insert(struct bcache *bc, daddr_t blkno)
{
    u_int	cand;
    cand = BHASH(bc, blkno);
    DEBUG("insert blk %llu -> %u # %d", blkno, cand, bcache_bcount);
    bc->bcache_ctl[cand].bc_blkno = blkno;
    bc->bcache_ctl[cand].bc_count = bcache_bcount++;
}
static void bcache_insert ( struct bcache * bc , daddr_t blkno ) { u_int cand ; cand = BHASH ( bc , blkno ) ; DEBUG ( " " , blkno , cand , bcache_bcount ) ; bc -> bcache_ctl [ cand ] . bc_blkno = blkno ; bc -> bcache_ctl [ cand ] . bc_count = bcache_bcount ++ ; }
Insert a block into the cache.
Insert a block into the cache .