mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 01:11:23 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue