Lines Matching refs:blkno
70 static void bcache_invalidate(daddr_t blkno);
71 static void bcache_insert(void *buf, daddr_t blkno);
72 static int bcache_lookup(void *buf, daddr_t blkno);
264 bcache_insert(void *buf, daddr_t blkno)
276 if (bcache_ctl[i].bc_blkno == blkno) {
287 DEBUG("insert blk %d -> %d @ %d # %d", blkno, cand, now, bcache_bcount);
289 bcache_ctl[cand].bc_blkno = blkno;
300 bcache_lookup(void *buf, daddr_t blkno)
309 if ((bcache_ctl[i].bc_blkno == blkno) && ((bcache_ctl[i].bc_stamp + BCACHE_TIMEOUT) >= now)) {
311 DEBUG("hit blk %d <- %d (now %d then %d)", blkno, i, now, bcache_ctl[i].bc_stamp);
321 bcache_invalidate(daddr_t blkno)
326 if (bcache_ctl[i].bc_blkno == blkno) {
329 DEBUG("invalidate blk %d", blkno);