[NTOS/MM] Do not dirtify section pages for system-space maps

Cc does it for itself.
This commit is contained in:
Jérôme Gardou 2020-11-18 17:45:47 +01:00
parent d440434a8e
commit 0933337404

View file

@ -3343,8 +3343,12 @@ MmFreeSectionPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address,
else
{
if (Process)
{
MmDeleteRmap(Page, Process, Address);
MmUnsharePageEntrySectionSegment(MemoryArea, Segment, &Offset, Dirty, FALSE, NULL);
}
/* We don't dirtify for System Space Maps. We let Cc manage that */
MmUnsharePageEntrySectionSegment(MemoryArea, Segment, &Offset, Process ? Dirty : FALSE, FALSE, NULL);
}
}
}