Do not call afs_MarinerLog when afs_mariner is not set
[openafs.git] / src / afs / VNOPS / afs_vnop_remove.c
index cda6f8e..3d6c402 100644 (file)
@@ -124,7 +124,8 @@ afsremove(struct vcache *adp, struct dcache *tdc,
      * call FindVCache instead of GetVCache since if the file's really
      * gone, we won't be able to fetch the status info anyway.  */
     if (tvc) {
-       afs_MarinerLog("store$Removing", tvc);
+       if (afs_mariner)
+           afs_MarinerLog("store$Removing", tvc);
 #ifdef AFS_BOZONLOCK_ENV
        afs_BozonLock(&tvc->pvnLock, tvc);
        /* Since afs_TryToSmush will do a pvn_vptrunc */