break;
}
- bp = buf_Find(scp, &tbase);
+ bp = buf_Find(&scp->fid, &tbase);
/* We cheat slightly by not locking the bp mutex. */
if (bp) {
if ((bp->cmFlags & (CM_BUF_CMFETCHING | CM_BUF_CMSTORING | CM_BUF_CMBKGFETCH)) == 0
thyper = ConvertLongToLargeInteger(temp);
tbase = LargeIntegerAdd(*inOffsetp, thyper);
- bufp = buf_Find(scp, &tbase);
+ bufp = buf_Find(&scp->fid, &tbase);
if (bufp) {
/* get buffer mutex and scp mutex safely */
lock_ReleaseWrite(&scp->rw);
tbase = LargeIntegerSubtract(firstModOffset, thyper);
while(LargeIntegerGreaterThanOrEqualTo(tbase, scanStart)) {
/* see if we can find the buffer */
- bufp = buf_Find(scp, &tbase);
+ bufp = buf_Find(&scp->fid, &tbase);
if (!bufp)
break;
tbase = LargeIntegerAdd(firstModOffset, thyper);
while(LargeIntegerLessThan(tbase, scanEnd)) {
/* see if we can find the buffer */
- bufp = buf_Find(scp, &tbase);
+ bufp = buf_Find(&scp->fid, &tbase);
if (!bufp)
break;
if (LargeIntegerGreaterThanOrEqualTo(pageBase, fileSize))
break;
- tbp = buf_Find(scp, &pageBase);
+ tbp = buf_Find(&scp->fid, &pageBase);
if (!tbp)
break;