projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
34b6a28
)
[NTOSKRNL] Honor files that shouldn't be lazy written
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 23 Dec 2018 11:10:58 +0000
(12:10 +0100)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 23 Dec 2018 11:10:58 +0000
(12:10 +0100)
ntoskrnl/cc/view.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/cc/view.c
b/ntoskrnl/cc/view.c
index
d644965
..
890c75e
100644
(file)
--- a/
ntoskrnl/cc/view.c
+++ b/
ntoskrnl/cc/view.c
@@
-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);