mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:CC] Make sure to purge the Mm side in CcPurgeCacheSection
This commit is contained in:
parent
d0bf98663b
commit
cc6bc02b91
1 changed files with 9 additions and 1 deletions
|
@ -180,7 +180,10 @@ CcPurgeCacheSection (
|
|||
|
||||
SharedCacheMap = SectionObjectPointer->SharedCacheMap;
|
||||
if (!SharedCacheMap)
|
||||
return FALSE;
|
||||
{
|
||||
Success = TRUE;
|
||||
goto purgeMm;
|
||||
}
|
||||
|
||||
StartOffset = FileOffset != NULL ? FileOffset->QuadPart : 0;
|
||||
if (Length == 0 || FileOffset == NULL)
|
||||
|
@ -257,6 +260,11 @@ CcPurgeCacheSection (
|
|||
ASSERT(Refs == 0);
|
||||
}
|
||||
|
||||
/* Now make sure that Mm doesn't hold some pages here. */
|
||||
purgeMm:
|
||||
if (Success)
|
||||
Success = MmPurgeSegment(SectionObjectPointer, FileOffset, Length);
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue