windows-dirty-buffer-optimization-20070808
[openafs.git] / src / WINNT / afsd / cm_dcache.c
index a8ee555..ab37e48 100644 (file)
@@ -1252,8 +1252,10 @@ void cm_ReleaseBIOD(cm_bulkIO_t *biop, int isStore, int failed)
                }
                if (failed)
                    bufp->flags &= ~CM_BUF_WRITING;
-               else
+               else {
                    bufp->flags &= ~(CM_BUF_WRITING | CM_BUF_DIRTY);
+                    bufp->dirty_offset = bufp->dirty_length = 0;
+                }
            }
 
            lock_ReleaseMutex(&scp->mx);