[NTOSKRNL:CC] Calculate Dirty Pages like NT5

This commit is contained in:
2024-08-18 07:28:25 +02:00
committed by CodingWorkshop Signing Team
parent 3ae19eaf01
commit 11683762c3

View File

@@ -1373,8 +1373,8 @@ CcAdjustWriteBehindThreadPoolIfNeeded(
} }
} }
else else
{ { auto DirtyPages = (CcTotalDirtyPages + CcPagesWrittenLastTime);
if (CcGlobalDirtyPageStatistics.DirtyPages > 0x2000 || NeedAdjustment) if (DirtyPages > 0x2000 || NeedAdjustment)
{ {
if (CcIsWriteBehindThreadpoolAtLowPriority()) if (CcIsWriteBehindThreadpoolAtLowPriority())
{ {