]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
darwin-vm-bugfix-for-running-apps-out-of-afs-20020710
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Thu, 11 Jul 2002 03:32:52 +0000 (03:32 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Jul 2002 03:32:52 +0000 (03:32 +0000)
this "fixes a problem that causes the afs kernel code to spew
into syslog if a long running application is run out of /afs"

src/afs/DARWIN/osi_vm.c

index caf0889a51e3a645c09456a1b0b34db7af2cadba..2cca0953d704dd48c7f517a466c5d15c93cf88d1 100644 (file)
@@ -193,7 +193,7 @@ void osi_VM_TryReclaim(avc, slept)
         return;
     }
 #ifdef AFS_DARWIN14_ENV
-    if (vp->v_ubcinfo->ui_refcount > 1) {
+    if (vp->v_ubcinfo->ui_refcount > 1 || vp->v_ubcinfo->ui_mapped) {
         simple_unlock(&vp->v_interlock);
         AFS_RELE(vp);
         return;