Fix swapping to a file, it was broken when SPECSTRATEGY was introduced.

This commit is contained in:
Matthew Dillon 2003-01-20 20:00:32 +00:00
parent 86209e4f24
commit 8575a17e02

@ -164,7 +164,10 @@ swapdev_strategy(ap)
}
bp->b_vp = sp->sw_vp;
splx(s);
VOP_SPECSTRATEGY(bp->b_vp, bp);
if (bp->b_vp->v_type == VCHR)
VOP_SPECSTRATEGY(bp->b_vp, bp);
else
VOP_STRATEGY(bp->b_vp, bp);
return 0;
}