[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
No known key found for this signature in database
GPG Key ID: 7545556C3D585B0B

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