summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-18 06:55:40 +0000
committerpeter <peter@FreeBSD.org>1999-11-18 06:55:40 +0000
commitbae4ed31fdf91669418fa9350eb9150ae1fc8ece (patch)
tree027679f4fef7e912943c57cce0b23e4d11969651 /sys/vm/swap_pager.h
parent8dee75f76be220e54178a3dbe19c6445fa99aae6 (diff)
downloadFreeBSD-src-bae4ed31fdf91669418fa9350eb9150ae1fc8ece.zip
FreeBSD-src-bae4ed31fdf91669418fa9350eb9150ae1fc8ece.tar.gz
Remove the non-functional "swap device" userland front-end to the
multiplexed underlying swap devices (/dev/drum). The only thing it did was to allow root to open /dev/drum, but not do anything with it. Various utilities used to grovel around in here, but Matt has written a much nicer (and clean) front-end to this for libkvm, and nothing uses the old system any more. The VM system was calling VOP_STRATEGY() on the vp of the first underlying swap device (not the /dev/drum one, the first real device), and using the VOP system to indirectly (and only) call swstrategy() to choose an underlying device and enqueue it on that device. I have changed it to avoid diverting through the VOP system and to call the only possible target directly, saving a little bit of time and some complexity. In all, nothing much changes, except some scaffolding to support the roundabout way of calling swstrategy() is gone. Matt gave me the ok to do this some time ago, and I apologize for taking so long to get around to it.
Diffstat (limited to 'sys/vm/swap_pager.h')
-rw-r--r--sys/vm/swap_pager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h
index 69bdbd1..308a6b1 100644
--- a/sys/vm/swap_pager.h
+++ b/sys/vm/swap_pager.h
@@ -104,6 +104,10 @@ int swap_pager_reserve __P((vm_object_t, vm_pindex_t, vm_size_t));
void swap_pager_page_removed __P((vm_page_t, vm_object_t));
+/* choose underlying swap device and queue up I/O */
+struct buf;
+void swstrategy __P((struct buf *bp)); /* probably needs to move elsewhere */
+
#endif
#endif /* _SWAP_PAGER_ */
OpenPOWER on IntegriCloud