mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[NTOSKRNL] Don't defer write through write operations
This commit is contained in:
@@ -622,6 +622,12 @@ CcCanIWrite (
|
||||
CCTRACE(CC_API_DEBUG, "FileObject=%p BytesToWrite=%lu Wait=%d Retrying=%d\n",
|
||||
FileObject, BytesToWrite, Wait, Retrying);
|
||||
|
||||
/* Write through is always OK */
|
||||
if (BooleanFlagOn(FileObject->Flags, FO_WRITE_THROUGH))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* We cannot write if dirty pages count is above threshold */
|
||||
if (CcTotalDirtyPages > CcDirtyPageThreshold)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user