https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1a267045f8cd36de9eb7542bef9a2fd7d34e0b09
commit 1a267045f8cd36de9eb7542bef9a2fd7d34e0b09 Author: Pierre Schweitzer <pie...@reactos.org> AuthorDate: Sun Dec 23 12:10:58 2018 +0100 Commit: Pierre Schweitzer <pie...@reactos.org> CommitDate: Sun Dec 23 12:10:58 2018 +0100 [NTOSKRNL] Honor files that shouldn't be lazy written --- ntoskrnl/cc/view.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c index d64496595f..890c75e99c 100644 --- a/ntoskrnl/cc/view.c +++ b/ntoskrnl/cc/view.c @@ -222,6 +222,14 @@ CcRosFlushDirtyPages ( continue; } + /* Don't attempt to lazy write the files that asked not to */ + if (CalledFromLazy && + BooleanFlagOn(current->SharedCacheMap->Flags, WRITEBEHIND_DISABLED)) + { + CcRosVacbDecRefCount(current); + continue; + } + ASSERT(current->Dirty); KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);