mirror of
https://github.com/reactos/reactos.git
synced 2025-08-11 13:25:36 +00:00
[NTOSKRNL] Misc cosmetic changes
This commit is contained in:
parent
9c87925197
commit
f8c3f0c9c4
3 changed files with 18 additions and 11 deletions
|
@ -362,7 +362,7 @@ CcUninitializeCacheMap (
|
|||
|
||||
/* And free it */
|
||||
FileObject->PrivateCacheMap = NULL;
|
||||
ExFreePoolWithTag(PrivateMap, 'cPcC');
|
||||
ExFreePoolWithTag(PrivateMap, TAG_PRIVATE_CACHE_MAP);
|
||||
}
|
||||
|
||||
Status = CcRosReleaseFileCache(FileObject);
|
||||
|
|
|
@ -1233,6 +1233,8 @@ CcRosInitializeFileCache (
|
|||
FILE_ALL_ACCESS,
|
||||
NULL,
|
||||
KernelMode);
|
||||
SharedCacheMap->NodeTypeCode = NODE_TYPE_SHARED_MAP;
|
||||
SharedCacheMap->NodeByteSize = sizeof(*SharedCacheMap);
|
||||
SharedCacheMap->FileObject = FileObject;
|
||||
SharedCacheMap->Callbacks = CallBacks;
|
||||
SharedCacheMap->LazyWriteContext = LazyWriterContext;
|
||||
|
@ -1255,7 +1257,7 @@ CcRosInitializeFileCache (
|
|||
PPRIVATE_CACHE_MAP PrivateMap;
|
||||
|
||||
/* Allocate the private cache map for this handle */
|
||||
PrivateMap = ExAllocatePoolWithTag(NonPagedPool, sizeof(PRIVATE_CACHE_MAP), 'cPcC');
|
||||
PrivateMap = ExAllocatePoolWithTag(NonPagedPool, sizeof(PRIVATE_CACHE_MAP), TAG_PRIVATE_CACHE_MAP);
|
||||
if (PrivateMap == NULL)
|
||||
{
|
||||
/* If we also allocated the shared cache map for this file, kill it */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue