diff --git "a/ntoskrnl/mm/balance.c" "b/ntoskrnl/mm/balance.c" index 3b11aeab2c8..49af20cd142 100644 --- "a/ntoskrnl/mm/balance.c" +++ "b/ntoskrnl/mm/balance.c" @@ -372,9 +372,10 @@ MiBalancerThread(PVOID Unused) if (Status == STATUS_WAIT_0 || Status == STATUS_WAIT_1) { ULONG InitialTarget = 0; +#if 0 ULONG Target; ULONG NrFreedPages; - +#endif do { ULONG OldTarget = InitialTarget; @@ -384,7 +385,7 @@ MiBalancerThread(PVOID Unused) { InitialTarget = MiTrimMemoryConsumer(i, InitialTarget); } - +#if 0 /* Trim cache */ Target = max(InitialTarget, abs(MiMinimumAvailablePages - MmAvailablePages)); if (Target) @@ -392,7 +393,7 @@ MiBalancerThread(PVOID Unused) CcRosTrimCache(Target, &NrFreedPages); InitialTarget -= min(NrFreedPages, InitialTarget); } - +#endif /* No pages left to swap! */ if (InitialTarget != 0 && InitialTarget == OldTarget)