mirror of
https://github.com/reactos/reactos.git
synced 2024-12-03 16:33:37 +08:00
[NTOSKRNL] Honor files that shouldn't be lazy written
This commit is contained in:
parent
34b6a28764
commit
1a267045f8
@ -222,6 +222,14 @@ CcRosFlushDirtyPages (
|
|||||||
continue;
|
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);
|
ASSERT(current->Dirty);
|
||||||
|
|
||||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
|
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
|
||||||
|
Loading…
Reference in New Issue
Block a user