[NTOSKRNL] Set the MemoryMaker flag when executing write behind
authorPierre Schweitzer <pierre@reactos.org>
Sun, 23 Dec 2018 13:59:42 +0000 (14:59 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 23 Dec 2018 13:59:42 +0000 (14:59 +0100)
ntoskrnl/cc/lazywrite.c

index 275507e..56f8d92 100644 (file)
@@ -307,7 +307,9 @@ CcWorkerThread(
                 break;
 
             case WriteBehind:
+                PsGetCurrentThread()->MemoryMaker = 1;
                 CcWriteBehind();
+                PsGetCurrentThread()->MemoryMaker = 0;
                 WritePerformed = TRUE;
                 break;