Remove the last call in the system to VOP_SPECSTRATEGY(): We can no

longer come through the VNODE layer to the disks since all the filesystems
now go via geom_vfs to GEOM.
This commit is contained in:
phk 2004-10-29 10:52:31 +00:00
parent ff969023bb
commit 546ea57ed3

View File

@ -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));
}