[NDK] Update the PRIVATE_CACHE_MAP structure to match W2K3 one.

Also update the spin lock on allocation.
This commit is contained in:
Pierre Schweitzer 2018-02-08 14:02:42 +01:00
parent de897cbe3d
commit f8b5d27807
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 6 additions and 2 deletions

View file

@ -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);