From a8dbeb3f7b850f093f2892563882b3afcecd5e8e Mon Sep 17 00:00:00 2001 From: tanimura Date: Wed, 13 Dec 2000 10:01:00 +0000 Subject: - If swap metadata does not fit into the KVM, reduce the number of struct swblock entries by dividing the number of the entries by 2 until the swap metadata fits. - Reject swapon(2) upon failure of swap_zone allocation. This is just a temporary fix. Better solutions include: (suggested by: dillon) o reserving swap in SWAP_META_PAGES chunks, and o swapping the swblock structures themselves. Reviewed by: alfred, dillon --- sys/vm/default_pager.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/vm/default_pager.c') diff --git a/sys/vm/default_pager.c b/sys/vm/default_pager.c index 7ea507f..f5d88a5 100644 --- a/sys/vm/default_pager.c +++ b/sys/vm/default_pager.c @@ -46,6 +46,7 @@ #include #include #include +#include #include static vm_object_t default_pager_alloc __P((void *, vm_ooffset_t, vm_prot_t, -- cgit v1.1