Author: arty
Date: Tue Feb 22 04:39:26 2011
New Revision: 50863
URL:
http://svn.reactos.org/svn/reactos?rev=50863&view=rev
Log:
[NEWCC] Reenable post-unmap flush. It seems to fix the regtest cd.
Modified:
branches/arty-newcc/ntoskrnl/cache/pinsup.c
Modified: branches/arty-newcc/ntoskrnl/cache/pinsup.c
URL:
http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/cache/pinsu…
==============================================================================
--- branches/arty-newcc/ntoskrnl/cache/pinsup.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/cache/pinsup.c [iso-8859-1] Tue Feb 22 04:39:26 2011
@@ -767,12 +767,7 @@
CcpUnlock();
if (!Released) {
- // Note: I thought this flush was needed based on the unwritten pages I had
- // seen post-install, but realized that the installer is using sections to
- // write files and we weren't pushing section pages.
- // I corrected that seperately and this probably isn't needed anymore.
- //if (RealBcb->Dirty)
- //MiFlushMappedSection(RealBcb->BaseAddress, &RealBcb->FileOffset,
&RealBcb->Map->FileSizes.FileSize, RealBcb->Dirty);
+ MiFlushMappedSection(RealBcb->BaseAddress, &RealBcb->FileOffset,
&RealBcb->Map->FileSizes.FileSize, RealBcb->Dirty);
CcpLock();
CcpUnpinData(RealBcb, TRUE);
CcpUnlock();