mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[NTOSKRNL] In CcFlushCache(), release the VACB using CcRosReleaseVacb()
Instead of reimplementing it partially and wrongly. CORE-14481 CORE-14480 CORE-14482
This commit is contained in:
parent
da50a61f0f
commit
2fbba22789
|
@ -963,7 +963,6 @@ CcFlushCache (
|
|||
LONGLONG RemainingLength;
|
||||
PROS_VACB current;
|
||||
NTSTATUS Status;
|
||||
KIRQL oldIrql;
|
||||
|
||||
CCTRACE(CC_API_DEBUG, "SectionObjectPointers=%p FileOffset=%p Length=%lu\n",
|
||||
SectionObjectPointers, FileOffset, Length);
|
||||
|
@ -1006,13 +1005,7 @@ CcFlushCache (
|
|||
}
|
||||
}
|
||||
|
||||
CcRosReleaseVacbLock(current);
|
||||
|
||||
KeAcquireGuardedMutex(&ViewLock);
|
||||
KeAcquireSpinLock(&SharedCacheMap->CacheMapLock, &oldIrql);
|
||||
CcRosVacbDecRefCount(current);
|
||||
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
|
||||
KeReleaseGuardedMutex(&ViewLock);
|
||||
CcRosReleaseVacb(SharedCacheMap, current, current->Valid, current->Dirty, FALSE);
|
||||
}
|
||||
|
||||
Offset.QuadPart += VACB_MAPPING_GRANULARITY;
|
||||
|
|
Loading…
Reference in a new issue