Author: sir_richard
Date: Thu Feb 18 17:50:55 2010
New Revision: 45609
URL:
http://svn.reactos.org/svn/reactos?rev=45609&view=rev
Log:
[NTOS]: Remove unused code.
Modified:
trunk/reactos/ntoskrnl/mm/mpw.c
Modified: trunk/reactos/ntoskrnl/mm/mpw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mpw.c?rev=4560…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mpw.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/mpw.c [iso-8859-1] Thu Feb 18 17:50:55 2010
@@ -22,35 +22,6 @@
BOOLEAN MpwThreadShouldTerminate;
/* FUNCTIONS *****************************************************************/
-
-NTSTATUS NTAPI
-MmWriteDirtyPages(ULONG Target, PULONG Actual)
-{
- PFN_TYPE Page;
- PFN_TYPE NextPage;
- NTSTATUS Status;
-
- Page = MmGetLRUFirstUserPage();
- while (Page != 0 && 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))
- {
- Status = MmWritePagePhysicalAddress(Page);
- if (NT_SUCCESS(Status))
- {
- Target--;
- }
- }
- Page = NextPage;
- }
- *Actual = Target;
- return(STATUS_SUCCESS);
-}
NTSTATUS NTAPI
MmMpwThreadMain(PVOID Ignored)
@@ -81,12 +52,6 @@
}
PagesWritten = 0;
-#if 0
- /*
- * FIXME: MmWriteDirtyPages doesn't work correctly.
- */
- MmWriteDirtyPages(128, &PagesWritten);
-#endif
CcRosFlushDirtyPages(128, &PagesWritten);
}