* Reserving areas never put down their reference of their address space when
removed in several cases. * vfs_get_vnode_cache() now always gives out a reference to the cache it returns; if it needs to allocate a new one, the vnode owns one reference, and the caller another. * therefore, file_cache_create() now owns a reference to its vm_cache_ref, and frees it in file_cache_delete(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21533 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
@@ -1292,6 +1292,7 @@ file_cache_delete(void *_cacheRef)
|
||||
|
||||
TRACE(("file_cache_delete(ref = %p)\n", ref));
|
||||
|
||||
vm_cache_release_ref(ref->cache);
|
||||
vfs_put_vnode(ref->device);
|
||||
delete ref;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user