Lines Matching defs:block
48 BLOCKNUM block;
66 BLOCKNUM block;
74 #define ch_block thisfile->block
168 if (ch_block == bp->block && ch_offset < bp->datasize)
173 * Look for a buffer holding the desired block.
180 if (bp->block == ch_block)
195 * and read the desired block into it.
200 bufnode_buf(ch_buftail)->block != -1)
219 bp->block = ch_block;
252 * Read the block.
253 * If we read less than a full block, that's ok.
254 * We use partial block and pick up the rest next time.
406 BLOCKNUM block;
412 for (block = 0; block < nblocks; block++)
418 if (bp->block == block)
437 * Determine if a specific block is currently in one of the buffers.
439 static int buffered(BLOCKNUM block)
445 h = BUFHASH(block);
449 if (bp->block == block)
536 buf_pos = (bp->block * LBUFSIZE) + bp->datasize;
569 if (bufnode_buf(bn)->block < bufnode_buf(firstbn)->block)
572 ch_block = bufnode_buf(firstbn)->block;
688 bufnode_buf(bn)->block = -1;
743 bp->block = -1;
832 thisfile->block = 0;
915 fs->fsize, fs->block, fs->offset);
921 bp, bp->block, bp->datasize);