DEVEL15-windows-smb-asyncstore-20080229

LICENSE MIT

fix it


(cherry picked from commit b8cacec96969b044c1cfdd1919ca9e2e36999243)
This commit is contained in:
Jeffrey Altman 2008-03-01 04:30:38 +00:00
parent df13fd4cb0
commit 5cd9032376

View File

@ -6560,8 +6560,8 @@ long smb_WriteData(smb_fid_t *fidp, osi_hyper_t *offsetp, afs_uint32 count, char
* so that we can read larger amounts of data at a time.
*/
if (smb_AsyncStore == 1 &&
(thyper.LowPart & ~(cm_data.buf_blockSize-1)) !=
(offset.LowPart & ~(cm_data.buf_blockSize-1))) {
(thyper.LowPart & ~(smb_AsyncStoreSize-1)) !=
(offset.LowPart & ~(smb_AsyncStoreSize-1))) {
/* they're different */
doWriteBack = 1;
writeBackOffset.HighPart = offset.HighPart;
@ -6730,7 +6730,7 @@ long smb_WriteData(smb_fid_t *fidp, osi_hyper_t *offsetp, afs_uint32 count, char
lock_ReleaseMutex(&scp->mx);
cm_QueueBKGRequest(scp, cm_BkgStore, writeBackOffset.LowPart,
writeBackOffset.HighPart,
*writtenp & ~(cm_data.blockSize-1), 0, userp);
*writtenp & ~(smb_AsyncStoreSize-1), 0, userp);
/* cm_SyncOpDone is called at the completion of cm_BkgStore */
}
} else {