OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
Fri, 28 Dec 2007 02:26:00 EST
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-5/src/WINNT/afsd
cm_BkgPrefetch() contained two errors. First, the loop at the top of the
function that ensures that a cm_buf_t is allocated for each of the offset
positions failed to actually obtain the buffer for the specified offset.
Instead, it repeatedly obtained the buffer for the starting base address.
Second, cm_GetBuffer() would reserve all of the buffers associated with
the cm_scache_t even in the case where we already have a callback and the
existing buffer has the proper data version number. In that situation
reserving the buffers simply wastes valuable time.
--- DELTA config for openafs-devel-1_5_x follows ---
DEVEL15-windows-get-buffer-20071228 openafs/src/WINNT/afsd/cm_dcache.c 184.108.40.206 220.127.116.11