Author: sir_richard Date: Thu Sep 30 03:21:02 2010 New Revision: 48938
URL: http://svn.reactos.org/svn/reactos?rev=48938&view=rev Log: [NTOS]: MiSetConsumer no longer achieves anything. Remove it.
Modified: trunk/reactos/ntoskrnl/mm/balance.c trunk/reactos/ntoskrnl/mm/freelist.c
Modified: trunk/reactos/ntoskrnl/mm/balance.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/balance.c?rev=4... ============================================================================== --- trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] Thu Sep 30 03:21:02 2010 @@ -234,8 +234,6 @@ PsGetCurrentThread() == MiBalancerThreadId.UniqueThread; }
-VOID NTAPI MiSetConsumer(IN PFN_NUMBER Pfn, IN ULONG Consumer); - NTSTATUS NTAPI MmRequestPageMemoryConsumer(ULONG Consumer, BOOLEAN CanWait, @@ -321,7 +319,6 @@ KeBugCheck(NO_PAGES_AVAILABLE); } /* Update the Consumer and make the page active */ - MiSetConsumer(Page, Consumer); if(Consumer == MC_USER) MmInsertLRULastUserPage(Page); *AllocatedPage = Page; (void)InterlockedDecrementUL(&MiPagesRequired);
Modified: trunk/reactos/ntoskrnl/mm/freelist.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/freelist.c?rev=... ============================================================================== --- trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] Thu Sep 30 03:21:02 2010 @@ -567,14 +567,6 @@
VOID NTAPI -MiSetConsumer(IN PFN_NUMBER Pfn, - IN ULONG Type) -{ - MiGetPfnEntry(Pfn)->u3.e1.PageLocation = ActiveAndValid; -} - -VOID -NTAPI MmDereferencePage(PFN_NUMBER Pfn) { PPHYSICAL_PAGE Page; @@ -591,6 +583,7 @@ Page->u3.e1.PageLocation = ActiveAndValid;
/* Bring it back into the free list */ + DPRINT("Legacy free: %lx\n", Pfn); MiInsertPageInFreeList(Pfn); } } @@ -617,6 +610,7 @@ return 0; }
+ DPRINT("Legacy allocate: %lx\n", PfnOffset); Pfn1 = MiGetPfnEntry(PfnOffset); Pfn1->u3.e2.ReferenceCount = 1; Pfn1->u3.e1.PageLocation = ActiveAndValid;