mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 02:58:48 +00:00
[NDK] Update the PRIVATE_CACHE_MAP structure to match W2K3 one.
Also update the spin lock on allocation.
This commit is contained in:
parent
de897cbe3d
commit
f8b5d27807
2 changed files with 6 additions and 2 deletions
|
@ -1280,6 +1280,7 @@ CcRosInitializeFileCache (
|
|||
PrivateMap->NodeTypeCode = NODE_TYPE_PRIVATE_MAP;
|
||||
PrivateMap->ReadAheadMask = PAGE_SIZE - 1;
|
||||
PrivateMap->FileObject = FileObject;
|
||||
KeInitializeSpinLock(&PrivateMap->ReadAheadSpinLock);
|
||||
|
||||
/* Link it to the file */
|
||||
KeAcquireSpinLock(&SharedCacheMap->CacheMapLock, &OldIrql);
|
||||
|
|
|
@ -75,10 +75,13 @@ typedef struct _PRIVATE_CACHE_MAP
|
|||
LARGE_INTEGER BeyondLastByte1;
|
||||
LARGE_INTEGER FileOffset2;
|
||||
LARGE_INTEGER BeyondLastByte2;
|
||||
LARGE_INTEGER ReadAheadOffset[2];
|
||||
ULONG ReadAheadLength[2];
|
||||
ULONG SequentialReadCount;
|
||||
ULONG ReadAheadLength;
|
||||
LARGE_INTEGER ReadAheadOffset;
|
||||
LARGE_INTEGER ReadAheadBeyondLastByte;
|
||||
KSPIN_LOCK ReadAheadSpinLock;
|
||||
LIST_ENTRY PrivateLinks;
|
||||
PVOID ReadAheadWorkItem;
|
||||
} PRIVATE_CACHE_MAP, *PPRIVATE_CACHE_MAP;
|
||||
|
||||
typedef struct _BITMAP_RANGE
|
||||
|
|
Loading…
Reference in a new issue