path: root/sys/sys
diff options
authorMatthew Dillon <dillon@FreeBSD.org>1999-09-17 05:09:24 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-09-17 05:09:24 +0000
commit4dcc5c2d1d86e7fc50d32458979049a3def253e4 (patch)
tree5b88fc2d276838aeeaf3da9689a5a36edd919127 /sys/sys
parent2eab8b3609fc71ea44ba0c8f7f350400434f4a10 (diff)
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>
Notes: svn path=/head/; revision=51339
Diffstat (limited to 'sys/sys')
0 files changed, 0 insertions, 0 deletions