aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2003-01-20 20:00:32 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2003-01-20 20:00:32 +0000
commit8575a17e02f1c0c14c795ee37e1efc6512dfa140 (patch)
tree8e69cfeaa69e7cbd6fef6dd8415380c9457089e4 /sys/vm
parent86209e4f24aba3bbff513669794337b374fc3f20 (diff)
Notes
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_swap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c
index f586d5d37ae45..2c3cfdea82f4d 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;
}