mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +00:00
[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.
svn path=/trunk/; revision=45622
This commit is contained in:
parent
d68a820d81
commit
6bde649d94
|
@ -120,6 +120,7 @@ MmReleasePageMemoryConsumer(ULONG Consumer, PFN_TYPE Page)
|
||||||
if (IsListEmpty(&AllocationListHead) || MmAvailablePages < MiMinimumAvailablePages)
|
if (IsListEmpty(&AllocationListHead) || MmAvailablePages < MiMinimumAvailablePages)
|
||||||
{
|
{
|
||||||
KeReleaseSpinLock(&AllocationListLock, OldIrql);
|
KeReleaseSpinLock(&AllocationListLock, OldIrql);
|
||||||
|
if(Consumer == MC_USER) MmRemoveLRUUserPage(Page);
|
||||||
OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
|
OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
|
||||||
MmDereferencePage(Page);
|
MmDereferencePage(Page);
|
||||||
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
|
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
|
||||||
|
|
Loading…
Reference in a new issue