mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[NTOS:CC] Make sure to purge the Mm side in CcPurgeCacheSection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user