RAMFS: Use cache types of 0 (invalid) rather than "RAM".

Otherwise, various parts of the VM think it's safe to modify
such caches and/or their commitments in ways that it's not.
This commit is contained in:
Augustin Cavalier
2025-07-07 17:08:37 -04:00
parent 687e76e3f9
commit 92f73a4e2c
@@ -307,6 +307,7 @@ DataContainer::_SwitchToCacheMode()
fCache = cache;
fCache->temporary = 1;
fCache->type = 0;
fCache->virtual_end = fSize;
error = fCache->Commit(fSize, VM_PRIORITY_USER);