projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d35243d
)
[NTOSKRNL] Don't defer write through write operations
author
Pierre Schweitzer
<pierre@reactos.org>
Fri, 9 Feb 2018 11:25:58 +0000
(12:25 +0100)
committer
Pierre Schweitzer
<pierre@reactos.org>
Fri, 9 Feb 2018 11:25:58 +0000
(12:25 +0100)
ntoskrnl/cc/copy.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/cc/copy.c
b/ntoskrnl/cc/copy.c
index
63ad5ae
..
4992ade
100644
(file)
--- a/
ntoskrnl/cc/copy.c
+++ b/
ntoskrnl/cc/copy.c
@@
-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)
{