mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
[NTOS]: Remove unused code.
svn path=/trunk/; revision=45609
This commit is contained in:
parent
774ed64bf2
commit
da398fe2c4
|
@ -23,35 +23,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 @@ MmMpwThreadMain(PVOID Ignored)
|
|||
}
|
||||
|
||||
PagesWritten = 0;
|
||||
#if 0
|
||||
/*
|
||||
* FIXME: MmWriteDirtyPages doesn't work correctly.
|
||||
*/
|
||||
MmWriteDirtyPages(128, &PagesWritten);
|
||||
#endif
|
||||
|
||||
CcRosFlushDirtyPages(128, &PagesWritten);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue