From e9012605b81d82945a912c6889e8d7003d03c455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 3 Aug 2007 01:26:35 +0000 Subject: [PATCH] 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 --- src/system/kernel/vm/vm.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index e06144d318..8f341b5ec9 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -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: