mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +00:00
[NTOS:MM] Remove Vad pointer from MEMORY_AREA
This commit is contained in:
parent
7611e49b9d
commit
8851d86847
2 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue