From af2318cfde026f5dc6b479089689dba63f7b8abc Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 1 Mar 2008 18:58:54 +0000 Subject: [PATCH] windows-asyncstore-again-20080301 LICENSE MIT must write the entire asyncstoresize otherwise dirty buffers are left for writing by buf_IncrSync thread. --- src/WINNT/afsd/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 70e9dc3..6cb1fa5 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -6430,7 +6430,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 & ~(smb_AsyncStoreSize-1), 0, userp); + smb_AsyncStoreSize, 0, userp); /* cm_SyncOpDone is called at the completion of cm_BkgStore */ } } else { -- 1.9.4