mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[NTOSKRNL] Honor files that shouldn't be lazy written
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user