Like the comment above said, vfs_lookup_vnode() doesn't grab a ref to the vnode,

so we better shouldn't release it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16591 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-03-05 20:55:35 +00:00
parent 0254f09df2
commit 8413da2383

View File

@ -1080,14 +1080,12 @@ file_cache_create(mount_id mountID, vnode_id vnodeID, off_t size, int fd)
goto err2;
if (vfs_get_vnode_cache(ref->vnode, &ref->cache, true) != B_OK)
goto err3;
goto err2;
ref->cache->cache->virtual_size = size;
((vnode_store *)ref->cache->cache->store)->file_cache_ref = ref;
return ref;
err3:
vfs_put_vnode(ref->vnode);
err2:
vfs_put_vnode(ref->device);
err1: