git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for HEAD-2003021201
[reactos.git]
/
ntoskrnl
/
mm
/
mpw.c
diff --git
a/ntoskrnl/mm/mpw.c
b/ntoskrnl/mm/mpw.c
index
b9ae628
..
8078e54
100644
(file)
--- 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)
{
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))
{
NextPage = MmGetLRUNextUserPage(Page);
if (MmIsDirtyPageRmap(Page))
{
@@
-100,7
+104,12
@@
MmMpwThreadMain(PVOID Ignored)
}
PagesWritten = 0;
}
PagesWritten = 0;
+#if 0
+ /*
+ * FIXME: MmWriteDirtyPages doesn't work correctly.
+ */
MmWriteDirtyPages(128, &PagesWritten);
MmWriteDirtyPages(128, &PagesWritten);
+#endif
CcRosFlushDirtyPages(128, &PagesWritten);
}
}
CcRosFlushDirtyPages(128, &PagesWritten);
}
}