MiAllowWorkingSetExpansion

VOID __stdcall MiAllowWorkingSetExpansion(_MMSUPPORT_INSTANCE *WsInfo){
  _KLOCK_QUEUE_HANDLE LockHandle; 

  memset(&LockHandle, 0, sizeof(LockHandle));
  KeAcquireInStackQueuedSpinLock((PKSPIN_LOCK)&stru_140C4DB30 + 522, &LockHandle);
  if( (WsInfo->Flags._bf_0 & 7) == 1 )
    MiInsertSessionWorkingSet(&WsInfo[-2].WorkingSetLeafPrivateSize);
  MiReturnWsToExpansionList(WsInfo, 0i64);
  KeReleaseInStackQueuedSpinLockFromDpcLevel(&LockHandle);
  __writecr8(LockHandle.OldIrql);
}

Referenced by:

MiInitializeSystemWorkingSetList
MmInitializeHandBuiltProcess
MmInitializeProcessAddressSpace