Author: sir_richard
Date: Fri Feb 19 18:55:22 2010
New Revision: 45622
URL:
http://svn.reactos.org/svn/reactos?rev=45622&view=rev
Log:
[NTOS]: It seems the code to release a page was not properly removing a page from the
working set bitmap/list in one scenario, so I added the call here too.
Modified:
trunk/reactos/ntoskrnl/mm/balance.c
Modified: trunk/reactos/ntoskrnl/mm/balance.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/balance.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/balance.c [iso-8859-1] Fri Feb 19 18:55:22 2010
@@ -120,6 +120,7 @@
if (IsListEmpty(&AllocationListHead) || MmAvailablePages <
MiMinimumAvailablePages)
{
KeReleaseSpinLock(&AllocationListLock, OldIrql);
+ if(Consumer == MC_USER) MmRemoveLRUUserPage(Page);
OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
MmDereferencePage(Page);
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);