Author: tfaber
Date: Sat Apr 12 11:19:38 2014
New Revision: 62715
URL:
http://svn.reactos.org/svn/reactos?rev=62715&view=rev
Log:
[NTOS:CC]
- Rename ROS_SHARED_CACHE_MAP::AllocationSize to SectionSize
CORE-8065
Modified:
trunk/reactos/ntoskrnl/cc/copy.c
trunk/reactos/ntoskrnl/cc/fs.c
trunk/reactos/ntoskrnl/cc/pin.c
trunk/reactos/ntoskrnl/cc/view.c
trunk/reactos/ntoskrnl/include/internal/cc.h
Modified: trunk/reactos/ntoskrnl/cc/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/copy.c?rev=627…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] Sat Apr 12 11:19:38 2014
@@ -199,7 +199,7 @@
KEVENT Event;
VacbOffset.QuadPart = Vacb->FileOffset;
- Size = (ULONG)(Vacb->SharedCacheMap->AllocationSize.QuadPart -
Vacb->FileOffset);
+ Size = (ULONG)(Vacb->SharedCacheMap->SectionSize.QuadPart -
Vacb->FileOffset);
if (Size > VACB_MAPPING_GRANULARITY)
{
Size = VACB_MAPPING_GRANULARITY;
@@ -252,7 +252,7 @@
Vacb->Dirty = FALSE;
VacbOffset.QuadPart = Vacb->FileOffset;
- Size = (ULONG)(Vacb->SharedCacheMap->AllocationSize.QuadPart -
Vacb->FileOffset);
+ Size = (ULONG)(Vacb->SharedCacheMap->SectionSize.QuadPart -
Vacb->FileOffset);
if (Size > VACB_MAPPING_GRANULARITY)
{
Size = VACB_MAPPING_GRANULARITY;
@@ -344,8 +344,8 @@
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
ReadOffset = (ULONG)FileOffset->QuadPart;
- DPRINT("AllocationSize %I64d, FileSize %I64d\n",
- SharedCacheMap->AllocationSize.QuadPart,
+ DPRINT("SectionSize %I64d, FileSize %I64d\n",
+ SharedCacheMap->SectionSize.QuadPart,
SharedCacheMap->FileSize.QuadPart);
/*
Modified: trunk/reactos/ntoskrnl/cc/fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/fs.c?rev=62715…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/fs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/fs.c [iso-8859-1] Sat Apr 12 11:19:38 2014
@@ -150,7 +150,7 @@
if (SharedCacheMap == NULL)
return;
- if (FileSizes->AllocationSize.QuadPart <
SharedCacheMap->AllocationSize.QuadPart)
+ if (FileSizes->AllocationSize.QuadPart <
SharedCacheMap->SectionSize.QuadPart)
{
InitializeListHead(&FreeListHead);
KeAcquireGuardedMutex(&ViewLock);
@@ -185,7 +185,7 @@
}
}
- SharedCacheMap->AllocationSize = FileSizes->AllocationSize;
+ SharedCacheMap->SectionSize = FileSizes->AllocationSize;
SharedCacheMap->FileSize = FileSizes->FileSize;
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldirql);
KeReleaseGuardedMutex(&ViewLock);
@@ -206,7 +206,7 @@
else
{
KeAcquireSpinLock(&SharedCacheMap->CacheMapLock, &oldirql);
- SharedCacheMap->AllocationSize = FileSizes->AllocationSize;
+ SharedCacheMap->SectionSize = FileSizes->AllocationSize;
SharedCacheMap->FileSize = FileSizes->FileSize;
KeReleaseSpinLock(&SharedCacheMap->CacheMapLock, oldirql);
}
@@ -256,7 +256,7 @@
if (!SharedCacheMap)
return FALSE;
- FileSizes->AllocationSize = SharedCacheMap->AllocationSize;
+ FileSizes->AllocationSize = SharedCacheMap->SectionSize;
FileSizes->FileSize = FileSizes->ValidDataLength =
SharedCacheMap->FileSize;
return TRUE;
}
Modified: trunk/reactos/ntoskrnl/cc/pin.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/pin.c?rev=6271…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/pin.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/pin.c [iso-8859-1] Sat Apr 12 11:19:38 2014
@@ -53,8 +53,8 @@
SharedCacheMap = FileObject->SectionObjectPointer->SharedCacheMap;
ASSERT(SharedCacheMap);
- DPRINT("AllocationSize %I64x, FileSize %I64x\n",
- SharedCacheMap->AllocationSize.QuadPart,
+ DPRINT("SectionSize %I64x, FileSize %I64x\n",
+ SharedCacheMap->SectionSize.QuadPart,
SharedCacheMap->FileSize.QuadPart);
if (ReadOffset % VACB_MAPPING_GRANULARITY + Length > VACB_MAPPING_GRANULARITY)
Modified: trunk/reactos/ntoskrnl/cc/view.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/view.c?rev=627…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] Sat Apr 12 11:19:38 2014
@@ -1220,7 +1220,7 @@
SharedCacheMap->LazyWriteContext = LazyWriterContext;
if (FileObject->FsContext)
{
- SharedCacheMap->AllocationSize =
+ SharedCacheMap->SectionSize =
((PFSRTL_COMMON_FCB_HEADER)FileObject->FsContext)->AllocationSize;
SharedCacheMap->FileSize =
((PFSRTL_COMMON_FCB_HEADER)FileObject->FsContext)->FileSize;
Modified: trunk/reactos/ntoskrnl/include/internal/cc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/cc.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/cc.h [iso-8859-1] Sat Apr 12 11:19:38 2014
@@ -106,7 +106,7 @@
LIST_ENTRY CacheMapVacbListHead;
ULONG TimeStamp;
PFILE_OBJECT FileObject;
- LARGE_INTEGER AllocationSize;
+ LARGE_INTEGER SectionSize;
LARGE_INTEGER FileSize;
PCACHE_MANAGER_CALLBACKS Callbacks;
PVOID LazyWriteContext;