mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 21:03:02 +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
1 changed files with 1 additions and 8 deletions
|
@ -963,7 +963,6 @@ CcFlushCache (
|
||||||
LONGLONG RemainingLength;
|
LONGLONG RemainingLength;
|
||||||
PROS_VACB current;
|
PROS_VACB current;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
KIRQL oldIrql;
|
|
||||||
|
|
||||||
CCTRACE(CC_API_DEBUG, "SectionObjectPointers=%p FileOffset=%p Length=%lu\n",
|
CCTRACE(CC_API_DEBUG, "SectionObjectPointers=%p FileOffset=%p Length=%lu\n",
|
||||||
SectionObjectPointers, FileOffset, Length);
|
SectionObjectPointers, FileOffset, Length);
|
||||||
|
@ -1006,13 +1005,7 @@ CcFlushCache (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CcRosReleaseVacbLock(current);
|
CcRosReleaseVacb(SharedCacheMap, current, current->Valid, current->Dirty, FALSE);
|
||||||
|
|
||||||
KeAcquireGuardedMutex(&ViewLock);
|
|
||||||
KeAcquireSpinLock(&SharedCacheMap->CacheMapLock, &oldIrql);
|
|
||||||
CcRosVacbDecRefCount(current);
|
|
||||||
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldIrql);
|
|
||||||
KeReleaseGuardedMutex(&ViewLock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Offset.QuadPart += VACB_MAPPING_GRANULARITY;
|
Offset.QuadPart += VACB_MAPPING_GRANULARITY;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue