mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[NTOSKRNL] Honor files that shouldn't be lazy written
This commit is contained in:
parent
34b6a28764
commit
1a267045f8
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue