MiDecrementModifiedWriteCount
_MI_CONTROL_AREA_WAIT_BLOCK *__stdcall MiDecrementModifiedWriteCount(_CONTROL_AREA *ControlArea, UINT64 LockHeld){
INT64 *p_ControlAreaLock;
unsigned __int8 v4;
_MI_CONTROL_AREA_WAIT_BLOCK *v5;
p_ControlAreaLock = (INT64 *)&ControlArea->ControlAreaLock;
if( (_DWORD)LockHeld == 1 )
v4 = 17;
else
v4 = ExAcquireSpinLockExclusive(p_ControlAreaLock);
--ControlArea->ModifiedWriteCount;
v5 = MiBuildWakeList(ControlArea, 8ui64);
if( v4 != 17 )
{
ExReleaseSpinLockExclusiveFromDpcLevel(p_ControlAreaLock);
__writecr8(v4);
}
return v5;
}Referenced by:
MiDeleteCachedSubsection
MiFlushComplete
MiFlushControlArea
MiPurgeBadFileOnlyPages
MiReleasePageFileSectionInfo
MiTrimSharedPage
MiUnlockFlushMdl
MiWriteComplete