mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +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;
|
ULONG Flags;
|
||||||
BOOLEAN DeleteInProgress;
|
BOOLEAN DeleteInProgress;
|
||||||
ULONG Magic;
|
ULONG Magic;
|
||||||
PVOID Vad;
|
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -166,7 +166,6 @@ MmInsertMemoryArea(
|
||||||
MiLockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
MiLockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||||
MiInsertVad(&marea->VadNode, &Process->VadRoot);
|
MiInsertVad(&marea->VadNode, &Process->VadRoot);
|
||||||
MiUnlockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
MiUnlockProcessWorkingSetUnsafe(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||||
marea->Vad = &marea->VadNode;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -184,7 +183,6 @@ MmInsertMemoryArea(
|
||||||
MiLockWorkingSet(PsGetCurrentThread(), &MmSystemCacheWs);
|
MiLockWorkingSet(PsGetCurrentThread(), &MmSystemCacheWs);
|
||||||
MiInsertVad(&marea->VadNode, &MiRosKernelVadRoot);
|
MiInsertVad(&marea->VadNode, &MiRosKernelVadRoot);
|
||||||
MiUnlockWorkingSet(PsGetCurrentThread(), &MmSystemCacheWs);
|
MiUnlockWorkingSet(PsGetCurrentThread(), &MmSystemCacheWs);
|
||||||
marea->Vad = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,13 +322,9 @@ MmFreeMemoryArea(
|
||||||
|
|
||||||
/* We do not have fake ARM3 memory areas anymore. */
|
/* We do not have fake ARM3 memory areas anymore. */
|
||||||
ASSERT(MI_IS_MEMORY_AREA_VAD(&MemoryArea->VadNode));
|
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());
|
MiLockProcessWorkingSet(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||||
MiRemoveNode((PMMADDRESS_NODE)&MemoryArea->VadNode, &Process->VadRoot);
|
MiRemoveNode((PMMADDRESS_NODE)&MemoryArea->VadNode, &Process->VadRoot);
|
||||||
MiUnlockProcessWorkingSet(PsGetCurrentProcess(), PsGetCurrentThread());
|
MiUnlockProcessWorkingSet(PsGetCurrentProcess(), PsGetCurrentThread());
|
||||||
|
|
||||||
MemoryArea->Vad = NULL;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue