1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Remove debugging code under OLD_DIAGNOSTIC; this is all >10 years old and

hasn't been used in that time.

MFC after:	1 month
This commit is contained in:
Robert Watson 2008-02-14 00:55:03 +00:00
parent 57a77b811f
commit c0964f549b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176263
2 changed files with 3 additions and 32 deletions

View File

@ -239,10 +239,6 @@ vc_read(struct cdev *dev, struct uio *uiop, int flag)
myprintf(("vcread: error (%d) on uiomove\n", error));
error = EINVAL;
}
#ifdef OLD_DIAGNOSTIC
if (vmp->vm_chain.forw == 0 || vmp->vm_chain.back == 0)
panic("vc_read: bad chain");
#endif
REMQUE(vmp->vm_chain);
/*

View File

@ -841,15 +841,8 @@ coda_inactive(struct vop_inactive_args *ap)
printf("coda_inactive: cp->ovp != NULL use %d: vp "
"%p, cp %p\n", vrefcnt(vp), vp, cp);
#endif
} else {
#ifdef OLD_DIAGNOSTIC
if (vrefcnt(CTOV(cp)))
panic("coda_inactive: nonzero reference count");
if (cp->c_ovp != NULL)
panic("coda_inactive: cp->ovp != NULL");
#endif
} else
vgone(vp);
}
MARK_INT_SAT(CODA_INACTIVE_STATS);
return (0);
}
@ -1080,10 +1073,6 @@ coda_create(struct vop_create_args *ap)
cache_enter(dvp, *vpp, cnp);
if (cnp->cn_flags & LOCKLEAF)
vn_lock(*ap->a_vpp, LK_EXCLUSIVE | LK_RETRY);
#ifdef OLD_DIAGNOSTIC
else
printf("coda_create: LOCKLEAF not set!\n");
#endif
} else if (error == ENOENT) {
/*
* XXXRW: We only enter a negative entry if ENOENT is
@ -1213,16 +1202,6 @@ coda_rename(struct vop_rename_args *ap)
MARK_ENTRY(CODA_RENAME_STATS);
/*
* Hmmm. The vnodes are already looked up. Perhaps they are locked?
* This could be Bad. XXX
*/
#ifdef OLD_DIAGNOSTIC
if ((fcnp->cn_cred != tcnp->cn_cred) ||
(fcnp->cn_thread != tcnp->cn_thread))
panic("coda_rename: component names don't agree");
#endif
/*
* Check for rename involving control object.
*/
@ -1572,12 +1551,8 @@ coda_reclaim(struct vop_reclaim_args *ap)
}
#endif
} else {
#ifdef OLD_DIAGNOSTIC
if (vrefcnt(vp) != 0)
print("coda_reclaim: pushing active %p\n", vp);
if (VTOC(vp)->c_ovp)
panic("coda_reclaim: c_ovp not void");
#endif
if (prtactive && vp->v_usecount != 0)
vprint("coda_reclaim: pushing active", vp);
}
cache_purge(vp);
coda_free(VTOC(vp));