Big merge: thanks alex and greatlord. Not a complete merge but most
[reactos.git] / reactos / boot / freeldr / freeldr / cache / cache.c
index ac02a72..1200c76 100644 (file)
@@ -90,11 +90,12 @@ BOOLEAN CacheInitializeDrive(ULONG DriveNumber)
        CacheManagerDrive.BlockSize = MachDiskGetCacheableBlockCount(DriveNumber);
 
        CacheBlockCount = 0;
-       CacheSizeLimit = GetSystemMemorySize() / 8;
+       //CacheSizeLimit = GetSystemMemorySize() / 8;
+       CacheSizeLimit = 16 * 1024;
        CacheSizeCurrent = 0;
-       if (CacheSizeLimit < (64 * 1024))
+       if (CacheSizeLimit < (16 * 1024))
        {
-               CacheSizeLimit = (64 * 1024);
+               CacheSizeLimit = (16 * 1024);
        }
 
        CacheManagerInitialized = TRUE;
@@ -284,7 +285,7 @@ BOOLEAN CacheForceDiskSectorsIntoCache(ULONG DiskNumber, ULONG StartSector, ULON
                //
                // Lock the sectors into the cache
                //
-               CacheBlock->LockedInCache = TRUE;
+               //CacheBlock->LockedInCache = TRUE;
        }
 
        return TRUE;