diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-20 20:00:32 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-20 20:00:32 +0000 |
| commit | 8575a17e02f1c0c14c795ee37e1efc6512dfa140 (patch) | |
| tree | 8e69cfeaa69e7cbd6fef6dd8415380c9457089e4 /sys/vm | |
| parent | 86209e4f24aba3bbff513669794337b374fc3f20 (diff) | |
Notes
Diffstat (limited to 'sys/vm')
| -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 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; } |
