mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[NTOS/MM] Do not dirtify section pages for system-space maps
Cc does it for itself.
This commit is contained in:
parent
d440434a8e
commit
0933337404
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue