Eliminate unnecessary KASSERTS.

This commit is contained in:
Poul-Henning Kamp 2004-10-27 06:45:06 +00:00
parent 2899faf96b
commit a40a512387
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136988
2 changed files with 0 additions and 4 deletions

View File

@ -1230,8 +1230,6 @@ struct vop_strategy_args {
struct vnode *vp; struct vnode *vp;
daddr_t lbn; daddr_t lbn;
KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)",
__func__, ap->a_vp, ap->a_bp->b_vp));
vp = ap->a_vp; vp = ap->a_vp;
lbn = ap->a_bp->b_lblkno; lbn = ap->a_bp->b_lblkno;
if (VTOI(vp)->i_fs->fs_magic == FS_UFS2_MAGIC && if (VTOI(vp)->i_fs->fs_magic == FS_UFS2_MAGIC &&

View File

@ -1931,8 +1931,6 @@ ufs_strategy(ap)
ufs2_daddr_t blkno; ufs2_daddr_t blkno;
int error; int error;
KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)",
__func__, ap->a_vp, ap->a_bp->b_vp));
ip = VTOI(vp); ip = VTOI(vp);
if (bp->b_blkno == bp->b_lblkno) { if (bp->b_blkno == bp->b_lblkno) {
error = ufs_bmaparray(vp, bp->b_lblkno, &blkno, bp, NULL, NULL); error = ufs_bmaparray(vp, bp->b_lblkno, &blkno, bp, NULL, NULL);