OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Fri, 28 Dec 2007 02:24:49 EST


Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd

Modified Files:
	cm_dcache.c 
Log Message:
DELTA windows-get-buffer-20071228
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

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 follows ---
windows-get-buffer-20071228 openafs/src/WINNT/afsd/cm_dcache.c 1.53 1.54