[NTOSKRNL] Set the MemoryMaker flag when executing write behind
[reactos.git] / 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;