vfs_get_vnode_cache() was changed (read: fixed) since r18716; it was wrong

to acquire the extra vnode reference, and actually prevented unmounting from
working - which it now does again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21806 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-08-03 01:26:35 +00:00
parent 25a7061652
commit e9012605b8
1 changed files with 3 additions and 8 deletions

View File

@ -1123,13 +1123,9 @@ err1:
}
/** Creates the vnode cache for the specified \a vnode.
* The vnode has to be marked busy when calling this function.
* If successful, it will also acquire an extra reference to
* the vnode (as the vnode store itself can't do this
* automatically).
*/
/*! Creates the vnode cache for the specified \a vnode.
The vnode has to be marked busy when calling this function.
*/
status_t
vm_create_vnode_cache(void *vnode, struct vm_cache **_cache)
{
@ -1149,7 +1145,6 @@ vm_create_vnode_cache(void *vnode, struct vm_cache **_cache)
cache->type = CACHE_TYPE_VNODE;
*_cache = cache;
vfs_acquire_vnode(vnode);
return B_OK;
err1: