diff --git a/NTOSKRNL/CC/cclazywriter.cpp b/NTOSKRNL/CC/cclazywriter.cpp index 126b549..1934704 100644 --- a/NTOSKRNL/CC/cclazywriter.cpp +++ b/NTOSKRNL/CC/cclazywriter.cpp @@ -1373,8 +1373,8 @@ CcAdjustWriteBehindThreadPoolIfNeeded( } } else - { - if (CcGlobalDirtyPageStatistics.DirtyPages > 0x2000 || NeedAdjustment) + { auto DirtyPages = (CcTotalDirtyPages + CcPagesWrittenLastTime); + if (DirtyPages > 0x2000 || NeedAdjustment) { if (CcIsWriteBehindThreadpoolAtLowPriority()) {