[NTOSKRNL:CC] Calculate Dirty Pages like NT5

This commit is contained in:
Dibyamartanda Samanta 2024-08-18 07:28:25 +02:00 committed by CodingWorkshop Signing Team
parent 3ae19eaf01
commit 11683762c3
Signed by: CodingWorkshop Signing Team
GPG Key ID: 6DC88369C82795D2

View File

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