mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:31:38 +00:00
[NTOSKRNL] Allow pinned dirty VACB to be lazy written.
This is an addition to 07e6e9c
.
Also, fix a cppcheck warning (so minor!).
CORE-14249
This commit is contained in:
parent
9c27193a43
commit
2362e0faae
1 changed files with 3 additions and 2 deletions
|
@ -250,7 +250,8 @@ CcRosFlushDirtyPages (
|
|||
ASSERT(current->Dirty);
|
||||
|
||||
/* One reference is added above */
|
||||
if (current->ReferenceCount > 2)
|
||||
if ((current->ReferenceCount > 2 && current->PinCount == 0) ||
|
||||
(current->ReferenceCount > 3 && current->PinCount > 1))
|
||||
{
|
||||
CcRosReleaseVacbLock(current);
|
||||
current->SharedCacheMap->Callbacks->ReleaseFromLazyWrite(
|
||||
|
@ -883,7 +884,7 @@ CcRosCreateVacb (
|
|||
#if MI_TRACE_PFNS
|
||||
if ((SharedCacheMap->FileObject) && (SharedCacheMap->FileObject->FileName.Buffer))
|
||||
{
|
||||
PWCHAR pos = NULL;
|
||||
PWCHAR pos;
|
||||
ULONG len = 0;
|
||||
pos = wcsrchr(SharedCacheMap->FileObject->FileName.Buffer, '\\');
|
||||
if (pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue