FreeBSD/sys/boot/common/bcache.c
/*
 * Invalidate a block from the cache.
 */
Invalidate a block from the cache.
Invalidate a block from the cache .
static void
bcache_invalidate(struct bcache *bc, daddr_t blkno)
{
    u_int	i;
    i = BHASH(bc, blkno);
    if (bc->bcache_ctl[i].bc_blkno == blkno) {
	bc->bcache_ctl[i].bc_count = -1;
	bc->bcache_ctl[i].bc_blkno = -1;
	DEBUG("invalidate blk %llu", blkno);
    }
}
static void bcache_invalidate ( struct bcache * bc , daddr_t blkno ) { u_int i ; i = BHASH ( bc , blkno ) ; if ( bc -> bcache_ctl [ i ] . bc_blkno == blkno ) { bc -> bcache_ctl [ i ] . bc_count = -1 ; bc -> bcache_ctl [ i ] . bc_blkno = -1 ; DEBUG ( " " , blkno ) ; } }
Invalidate a block from the cache.
Invalidate a block from the cache .