Author: tkreuzer
Date: Sun Nov 24 12:51:45 2013
New Revision: 61088
URL:
http://svn.reactos.org/svn/reactos?rev=61088&view=rev
Log:
[NTOSKRNL]
Make use of MiQueryPageTableReferences
Modified:
trunk/reactos/ntoskrnl/mm/marea.c
Modified: trunk/reactos/ntoskrnl/mm/marea.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/marea.c?rev=61…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] Sun Nov 24 12:51:45 2013
@@ -851,7 +851,7 @@
if ((SwapEntry || Page) && ((PVOID)Address < MmSystemRangeStart))
{
ASSERT(AddressSpace != MmGetKernelAddressSpace());
- if (MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)] ==
0)
+ if (MiQueryPageTableReferences((PVOID)Address) == 0)
{
/* No PTE relies on this PDE. Release it */
KIRQL OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
@@ -1185,13 +1185,13 @@
Address =(PVOID)((ULONG_PTR)Address + (PAGE_SIZE * PTE_COUNT)))
{
/* At this point all references should be dead */
- if (MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)] != 0)
+ if (MiQueryPageTableReferences(Address) != 0)
{
DPRINT1("Process %p, Address %p, UsedPageTableEntries %lu\n",
Process,
Address,
-
MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)]);
- ASSERT(MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(Address)]
== 0);
+ MiQueryPageTableReferences(Address));
+ ASSERT(MiQueryPageTableReferences(Address) == 0);
}
pointerPde = MiAddressToPde(Address);
/* Unlike in ARM3, we don't necesarrily free the PDE page as soon as
reference reaches 0,