mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
DEVEL15-windows-smb-asyncstore-20080229
LICENSE MIT fix it (cherry picked from commit b8cacec96969b044c1cfdd1919ca9e2e36999243)
This commit is contained in:
parent
df13fd4cb0
commit
5cd9032376
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user