[NTOSKRNL] Honor files that shouldn't be lazy written

This commit is contained in:
Pierre Schweitzer
2018-12-23 12:10:58 +01:00
parent 34b6a28764
commit 1a267045f8

View File

@@ -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);