X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=ntoskrnl%2Fmm%2Fmpw.c;h=8078e54c30f7572e0cf76a0013373da02da865b4;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hp=b9ae628d688495670b8c5baf85dd1812e62f2b95;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3;p=reactos.git diff --git a/ntoskrnl/mm/mpw.c b/ntoskrnl/mm/mpw.c index b9ae628..8078e54 100644 --- a/ntoskrnl/mm/mpw.c +++ b/ntoskrnl/mm/mpw.c @@ -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); } }