diff options
author | dillon <dillon@FreeBSD.org> | 2003-01-20 20:00:32 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2003-01-20 20:00:32 +0000 |
commit | 091797e7e50e59c126583724131f99db3b7b6815 (patch) | |
tree | 8e69cfeaa69e7cbd6fef6dd8415380c9457089e4 /sys/vm | |
parent | 6f645b3f273536aa23ba04649f6bf70b690b5301 (diff) | |
download | FreeBSD-src-091797e7e50e59c126583724131f99db3b7b6815.zip FreeBSD-src-091797e7e50e59c126583724131f99db3b7b6815.tar.gz |
Fix swapping to a file, it was broken when SPECSTRATEGY was introduced.
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 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; } |