Windows: cm_SetupStoreBIOD use firstModOffset chunk
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 16 Nov 2011 00:00:05 +0000 (19:00 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 16 Nov 2011 14:06:08 +0000 (06:06 -0800)
commit320c7292e6ae014e44e89b0da736bcc04ef42b2b
tree35f71f93c95d0015ed4d779f34a3736481b64e78
parentc904d9a3889b7dd8c8795feaa9e5e4979f681f53
Windows: cm_SetupStoreBIOD use firstModOffset chunk

When cm_SetupStoreBIOD attempts to store a chunk to the file
server it should not use *inOffsetp as the start of the range.
There is no guarantee that the buffer at *inOffsetp is dirty.
Instead use firstModOffset which refers to the first known
dirty buffer in the range specified by the caller.  Attempt
to fill a chunk of consecutive dirty buffers from that point.

Change-Id: I468e896b046192461d6fe0dc3669e5feeb7886ba
Reviewed-on: http://gerrit.openafs.org/6057
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsd/cm_dcache.c