From: Derrick Brashear Date: Mon, 21 Feb 2005 01:14:18 +0000 (+0000) Subject: STABLE14-macos-dont-inactive-vnodes-were-still-referencing-20050203 X-Git-Tag: openafs-devel-1_3_79~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=54420a1dbed55fe688772f9f90e994984f78fc26;p=packages%2Fo%2Fopenafs.git STABLE14-macos-dont-inactive-vnodes-were-still-referencing-20050203 don't VOP_INACTIVE if we intend to keep using the inode, the refcount will go bogus (cherry picked from commit a6f560b80575a246b4ee347622f1fd3f6fdd1420) --- diff --git a/src/afs/DARWIN/osi_vm.c b/src/afs/DARWIN/osi_vm.c index 7f9cae4eb..bcc123937 100644 --- a/src/afs/DARWIN/osi_vm.c +++ b/src/afs/DARWIN/osi_vm.c @@ -281,7 +281,7 @@ osi_VM_TryReclaim(struct vcache *avc, int *slept) 1 #endif ) - VOP_INACTIVE(vp, p); + VOP_UNLOCK(vp, 0, p); /* was VOP_INACTIVE(vp, p); */ else VOP_UNLOCK(vp, 0, p); #ifdef AFS_DARWIN14_ENV @@ -290,7 +290,7 @@ osi_VM_TryReclaim(struct vcache *avc, int *slept) #endif if (obj) { if (ISSET(vp->v_flag, VTERMINATE)) - panic("afs_vnreclaim: already teminating"); + panic("afs_vnreclaim: already terminating"); SET(vp->v_flag, VTERMINATE); memory_object_destroy(obj, 0); while (ISSET(vp->v_flag, VTERMINATE)) {