update for HEAD-2003021201
[reactos.git] / ntoskrnl / mm / mpw.c
index b9ae628..8078e54 100644 (file)
@@ -56,6 +56,10 @@ MmWriteDirtyPages(ULONG Target, PULONG Actual)
   Page = MmGetLRUFirstUserPage();
   while (Page.QuadPart != 0LL && Target > 0)
     {
+      /*
+       * FIXME: While the current page is write back it is possible
+       *        that the next page is freed and not longer a user page.
+       */
       NextPage = MmGetLRUNextUserPage(Page);
       if (MmIsDirtyPageRmap(Page))
        {
@@ -100,7 +104,12 @@ MmMpwThreadMain(PVOID Ignored)
        }
       
       PagesWritten = 0;
+#if 0
+      /* 
+       *  FIXME: MmWriteDirtyPages doesn't work correctly.
+       */
       MmWriteDirtyPages(128, &PagesWritten);
+#endif
       CcRosFlushDirtyPages(128, &PagesWritten);
     }
 }