summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/interp_parse.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-09-17 05:09:24 +0000
committerdillon <dillon@FreeBSD.org>1999-09-17 05:09:24 +0000
commit7a0052d268ee8736620e4c44ba2fd3149196391d (patch)
tree6c2168f8ca0cc78688aa99b55ef65a87f46aef72 /sys/boot/common/interp_parse.c
parent6c2a557edd099560a5d4a4c3cb01ca87f8ff1a87 (diff)
downloadFreeBSD-src-7a0052d268ee8736620e4c44ba2fd3149196391d.zip
FreeBSD-src-7a0052d268ee8736620e4c44ba2fd3149196391d.tar.gz
Fix a number of spl bugs related to reserving and freeing swap space.
Swap space can be freed from an interrupt and so swap reservation and freeing must occur at splvm. Add swap_pager_reserve() code to support a new swap pre-reservation capability for the VN device. Generally cleanup the swap code by simplifying the swp_pager_meta_build() static function and consolidating the SWAPBLK_NONE test from a bit test to an absolute compare. The bit test was left over from a rejected swap allocation scheme that was not ultimately committed. A few other minor cleanups were also made. Reorganize the swap strategy code, again for VN support, to not reallocate swap when writing as this messes up pre-reservation and can fragment I/O unnecessarily as VN-baesd disk is messed around with. Reviewed by: Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
Diffstat (limited to 'sys/boot/common/interp_parse.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud