From 5cd9032376f7fbd3f3dc54fc0459745043b7e97b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 1 Mar 2008 04:30:38 +0000 Subject: [PATCH] DEVEL15-windows-smb-asyncstore-20080229 LICENSE MIT fix it (cherry picked from commit b8cacec96969b044c1cfdd1919ca9e2e36999243) --- src/WINNT/afsd/smb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 573fc213d8..3708e23807 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -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 {