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:
@@ -307,6 +307,7 @@ DataContainer::_SwitchToCacheMode()
|
|||||||
|
|
||||||
fCache = cache;
|
fCache = cache;
|
||||||
fCache->temporary = 1;
|
fCache->temporary = 1;
|
||||||
|
fCache->type = 0;
|
||||||
fCache->virtual_end = fSize;
|
fCache->virtual_end = fSize;
|
||||||
|
|
||||||
error = fCache->Commit(fSize, VM_PRIORITY_USER);
|
error = fCache->Commit(fSize, VM_PRIORITY_USER);
|
||||||
|
|||||||
Reference in New Issue
Block a user