diff options
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r-- | sys/vm/vm_swap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index f586d5d..2c3cfde 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -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; } |