projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ababb3
)
[NTOSKRNL]
author
Cameron Gutman
<aicommander@gmail.com>
Sat, 24 Dec 2011 05:43:36 +0000
(
05:43
+0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Sat, 24 Dec 2011 05:43:36 +0000
(
05:43
+0000)
- Fix a reference count check in the flush path (broken by r54745)
svn path=/trunk/; revision=54747
reactos/ntoskrnl/cc/view.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/cc/view.c
b/reactos/ntoskrnl/cc/view.c
index
e219fcb
..
72ef668
100644
(file)
--- a/
reactos/ntoskrnl/cc/view.c
+++ b/
reactos/ntoskrnl/cc/view.c
@@
-228,7
+228,9
@@
CcRosFlushDirtyPages(ULONG Target, PULONG Count, BOOLEAN Wait)
}
ASSERT(current->Dirty);
- if (current->ReferenceCount > 1)
+
+ /* One reference is added above */
+ if (current->ReferenceCount > 2)
{
KeReleaseMutex(¤t->Mutex, 0);
current->Bcb->Callbacks->ReleaseFromLazyWrite(