mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +00:00
[NTOSKRNL] Drop the CcTryToInitializeFileCache() which is actually doing nothing relevant
This commit is contained in:
parent
6ece4e9fc2
commit
0e932c7bef
3 changed files with 1 additions and 46 deletions
|
@ -1197,37 +1197,6 @@ CcRosReleaseFileCache (
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
CcTryToInitializeFileCache (
|
|
||||||
PFILE_OBJECT FileObject)
|
|
||||||
{
|
|
||||||
PROS_SHARED_CACHE_MAP SharedCacheMap;
|
|
||||||
NTSTATUS Status;
|
|
||||||
|
|
||||||
KeAcquireGuardedMutex(&ViewLock);
|
|
||||||
|
|
||||||
ASSERT(FileObject->SectionObjectPointer);
|
|
||||||
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
|
|
||||||
if (SharedCacheMap == NULL)
|
|
||||||
{
|
|
||||||
Status = STATUS_UNSUCCESSFUL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (FileObject->PrivateCacheMap == NULL)
|
|
||||||
{
|
|
||||||
FileObject->PrivateCacheMap = SharedCacheMap;
|
|
||||||
SharedCacheMap->OpenCount++;
|
|
||||||
}
|
|
||||||
Status = STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
KeReleaseGuardedMutex(&ViewLock);
|
|
||||||
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
CcRosInitializeFileCache (
|
CcRosInitializeFileCache (
|
||||||
|
|
|
@ -406,10 +406,6 @@ CcRosReleaseFileCache(
|
||||||
PFILE_OBJECT FileObject
|
PFILE_OBJECT FileObject
|
||||||
);
|
);
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
CcTryToInitializeFileCache(PFILE_OBJECT FileObject);
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
CcShutdownSystem(VOID);
|
CcShutdownSystem(VOID);
|
||||||
|
|
|
@ -3758,17 +3758,7 @@ MmCreateImageSection(PROS_SECTION_OBJECT *SectionObject,
|
||||||
Section->SectionPageProtection = SectionPageProtection;
|
Section->SectionPageProtection = SectionPageProtection;
|
||||||
Section->AllocationAttributes = AllocationAttributes;
|
Section->AllocationAttributes = AllocationAttributes;
|
||||||
|
|
||||||
#ifndef NEWCC
|
if (FileObject->SectionObjectPointer->ImageSectionObject == NULL)
|
||||||
/*
|
|
||||||
* Initialized caching for this file object if previously caching
|
|
||||||
* was initialized for the same on disk file
|
|
||||||
*/
|
|
||||||
Status = CcTryToInitializeFileCache(FileObject);
|
|
||||||
#else
|
|
||||||
Status = STATUS_SUCCESS;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status) || FileObject->SectionObjectPointer->ImageSectionObject == NULL)
|
|
||||||
{
|
{
|
||||||
NTSTATUS StatusExeFmt;
|
NTSTATUS StatusExeFmt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue