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_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_map.c') diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 8aa25e2..8cc61b1 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -86,8 +86,8 @@ #include #include #include -#include #include +#include /* * Virtual memory maps provide for the mapping, protection, -- cgit v1.1