https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e16241255d518e318aafa7d02b8e2eb6049c60b9

commit e16241255d518e318aafa7d02b8e2eb6049c60b9
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sun Dec 23 14:59:42 2018 +0100
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sun Dec 23 14:59:42 2018 +0100

    [NTOSKRNL] Set the MemoryMaker flag when executing write behind
---
 ntoskrnl/cc/lazywrite.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ntoskrnl/cc/lazywrite.c b/ntoskrnl/cc/lazywrite.c
index 275507e904..56f8d922df 100644
--- a/ntoskrnl/cc/lazywrite.c
+++ b/ntoskrnl/cc/lazywrite.c
@@ -307,7 +307,9 @@ CcWorkerThread(
                 break;
 
             case WriteBehind:
+                PsGetCurrentThread()->MemoryMaker = 1;
                 CcWriteBehind();
+                PsGetCurrentThread()->MemoryMaker = 0;
                 WritePerformed = TRUE;
                 break;
 

Reply via email to