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

This commit is contained in:
dillon 2003-01-20 20:00:32 +00:00
parent 46857a0bd8
commit 350972d0c2

View File

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