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 caf0889..2cca095 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;