]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove the non-functional "swap device" userland front-end to the
authorpeter <peter@FreeBSD.org>
Thu, 18 Nov 1999 06:55:40 +0000 (06:55 +0000)
committerpeter <peter@FreeBSD.org>
Thu, 18 Nov 1999 06:55:40 +0000 (06:55 +0000)
commitbae4ed31fdf91669418fa9350eb9150ae1fc8ece
tree027679f4fef7e912943c57cce0b23e4d11969651
parent8dee75f76be220e54178a3dbe19c6445fa99aae6
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.
sys/vm/swap_pager.c
sys/vm/swap_pager.h
sys/vm/vm_swap.c