mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[NTOS:MM] Remove Vad pointer from MEMORY_AREA
This commit is contained in:
@@ -259,7 +259,6 @@ typedef struct _MEMORY_AREA
|
||||
ULONG Flags;
|
||||
BOOLEAN DeleteInProgress;
|
||||
ULONG Magic;
|
||||
PVOID Vad;
|
||||
|
||||
struct
|
||||
{
|
||||
|
@@ -166,7 +166,6 @@ MmInsertMemoryArea(
|
||||
MiLockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||
MiInsertVad(&marea->VadNode, &Process->VadRoot);
|
||||
MiUnlockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||
marea->Vad = &marea->VadNode;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -184,7 +183,6 @@ MmInsertMemoryArea(
|
||||
MiLockWorkingSet(PsGetCurrentThread(), &MmSystemCacheWs);
|
||||
MiInsertVad(&marea->VadNode, &MiRosKernelVadRoot);
|
||||
MiUnlockWorkingSet(PsGetCurrentThread(), &MmSystemCacheWs);
|
||||
marea->Vad = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -324,13 +322,9 @@ MmFreeMemoryArea(
|
||||
|
||||
/* We do not have fake ARM3 memory areas anymore. */
|
||||
ASSERT(MI_IS_MEMORY_AREA_VAD(&MemoryArea->VadNode));
|
||||
ASSERT(MI_IS_MEMORY_AREA_VAD((PMMVAD)MemoryArea->Vad));
|
||||
ASSERT((PMMVAD)MemoryArea->Vad == &MemoryArea->VadNode);
|
||||
MiLockProcessWorkingSet(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||
MiRemoveNode((PMMADDRESS_NODE)&MemoryArea->VadNode, &Process->VadRoot);
|
||||
MiUnlockProcessWorkingSet(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||
|
||||
MemoryArea->Vad = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user