[NTOSKRNL] Magic value--
authorPierre Schweitzer <pierre@reactos.org>
Thu, 8 Feb 2018 08:46:08 +0000 (09:46 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 8 Feb 2018 10:02:26 +0000 (11:02 +0100)
ntoskrnl/cc/view.c

index 145eb0d..4933665 100644 (file)
@@ -1277,7 +1277,7 @@ CcRosInitializeFileCache (
         /* Initialize it */
         RtlZeroMemory(PrivateMap, sizeof(PRIVATE_CACHE_MAP));
         PrivateMap->NodeTypeCode = NODE_TYPE_PRIVATE_MAP;
-        PrivateMap->ReadAheadMask = 0xFFF;
+        PrivateMap->ReadAheadMask = PAGE_SIZE - 1;
         PrivateMap->FileObject = FileObject;
 
         /* Link it to the file */