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:
parent
25a7061652
commit
e9012605b8
|
@ -1123,13 +1123,9 @@ err1:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Creates the vnode cache for the specified \a vnode.
|
/*! Creates the vnode cache for the specified \a vnode.
|
||||||
* The vnode has to be marked busy when calling this function.
|
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).
|
|
||||||
*/
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
vm_create_vnode_cache(void *vnode, struct vm_cache **_cache)
|
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->type = CACHE_TYPE_VNODE;
|
||||||
|
|
||||||
*_cache = cache;
|
*_cache = cache;
|
||||||
vfs_acquire_vnode(vnode);
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
err1:
|
err1:
|
||||||
|
|
Loading…
Reference in New Issue