diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 13da4ffa717c..37a64928a6b1 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3808,15 +3808,10 @@ bufstrategy(struct bufobj *bo, struct buf *bp) struct vnode *vp; vp = bp->b_vp; -#if 0 - KASSERT(vp == bo->bo_vnode, ("Inconsistent vnode bufstrategy")); + KASSERT(vp == bo->bo_private, ("Inconsistent vnode bufstrategy")); KASSERT(vp->v_type != VCHR && vp->v_type != VBLK, ("Wrong vnode in bufstrategy(bp=%p, vp=%p)", bp, vp)); -#endif - if (vp->v_type == VCHR) - i = VOP_SPECSTRATEGY(vp, bp); - else - i = VOP_STRATEGY(vp, bp); + i = VOP_STRATEGY(vp, bp); KASSERT(i == 0, ("VOP_STRATEGY failed bp=%p vp=%p", bp, bp->b_vp)); }