mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user