]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-darwin-vm-bugfix-for-running-apps-out-of-afs-20020710
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Thu, 11 Jul 2002 03:34:13 +0000 (03:34 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Jul 2002 03:34:13 +0000 (03:34 +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"

(cherry picked from commit 7e0d50a1083e765d12a4978150002cfd7d806a91)

src/afs/DARWIN/osi_vm.c

index 968d9a5e3088ec3a4a780e44696af1c0dcc8440d..4cc6aa4dd166fde254b7129d511cd48d3b463750 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;