summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2003-01-20 20:00:32 +0000
committerdillon <dillon@FreeBSD.org>2003-01-20 20:00:32 +0000
commit091797e7e50e59c126583724131f99db3b7b6815 (patch)
tree8e69cfeaa69e7cbd6fef6dd8415380c9457089e4 /sys/vm
parent6f645b3f273536aa23ba04649f6bf70b690b5301 (diff)
downloadFreeBSD-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.c5
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;
}
OpenPOWER on IntegriCloud