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/vm_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_object.c') diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index ddb9ab7..3eb5243 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -84,10 +84,10 @@ #include #include #include +#include #include #include #include -#include static void vm_object_qcollapse __P((vm_object_t object)); -- cgit v1.1