Changed the way the stores commit their memory: there is no special handling
for temporary memory anymore, it's the store's responsibility to do that correctly now, and that functionality is reached via the vm_cache using vm_cache_set_minimal_commitment(). Therefore, the vm_store commit() function now returns a status instead of the size that could be commited. Replaced the max_commit mechanism with one that cares about the available memory, stores can reserve and unreserve such memory. The anonymous_commit() will now fail in case it could not reserve the needed amount of memory. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9777 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,6 +24,7 @@ void vm_cache_release_ref(vm_cache_ref *cache_ref);
|
||||
vm_page *vm_cache_lookup_page(vm_cache_ref *cacheRef, off_t page);
|
||||
void vm_cache_insert_page(vm_cache_ref *cacheRef, vm_page *page, off_t offset);
|
||||
void vm_cache_remove_page(vm_cache_ref *cacheRef, vm_page *page);
|
||||
status_t vm_cache_set_minimal_commitment(vm_cache_ref *ref, off_t commitment);
|
||||
status_t vm_cache_resize(vm_cache_ref *cacheRef, size_t newSize);
|
||||
status_t vm_cache_insert_region(vm_cache_ref *cacheRef, vm_region *region);
|
||||
status_t vm_cache_remove_region(vm_cache_ref *cacheRef, vm_region *region);
|
||||
|
||||
Reference in New Issue
Block a user