[NTOS:MM] Remove Vad pointer from MEMORY_AREA

This commit is contained in:
Timo Kreuzer 2024-04-06 15:20:42 +03:00
parent 7611e49b9d
commit 8851d86847
2 changed files with 0 additions and 7 deletions

View file

@ -259,7 +259,6 @@ typedef struct _MEMORY_AREA
ULONG Flags;
BOOLEAN DeleteInProgress;
ULONG Magic;
PVOID Vad;
struct
{

View file

@ -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
{