mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[NTOSKRNL] Don't defer write through write operations
This commit is contained in:
parent
d35243d4e0
commit
f51b74ca61
1 changed files with 6 additions and 0 deletions
|
@ -622,6 +622,12 @@ CcCanIWrite (
|
||||||
CCTRACE(CC_API_DEBUG, "FileObject=%p BytesToWrite=%lu Wait=%d Retrying=%d\n",
|
CCTRACE(CC_API_DEBUG, "FileObject=%p BytesToWrite=%lu Wait=%d Retrying=%d\n",
|
||||||
FileObject, BytesToWrite, Wait, Retrying);
|
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 */
|
/* We cannot write if dirty pages count is above threshold */
|
||||||
if (CcTotalDirtyPages > CcDirtyPageThreshold)
|
if (CcTotalDirtyPages > CcDirtyPageThreshold)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue