summaryrefslogtreecommitdiffstats
path: root/sys/vm/default_pager.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2000-12-13 10:01:00 +0000
committertanimura <tanimura@FreeBSD.org>2000-12-13 10:01:00 +0000
commita8dbeb3f7b850f093f2892563882b3afcecd5e8e (patch)
tree5cfdc93fb25655fb4c56646dcc64ce1e405c28e8 /sys/vm/default_pager.c
parent90d90d0c248fbcde27a7d443098c2bf514aaa199 (diff)
downloadFreeBSD-src-a8dbeb3f7b850f093f2892563882b3afcecd5e8e.zip
FreeBSD-src-a8dbeb3f7b850f093f2892563882b3afcecd5e8e.tar.gz
- 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
Diffstat (limited to 'sys/vm/default_pager.c')
-rw-r--r--sys/vm/default_pager.c1
1 files changed, 1 insertions, 0 deletions
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 <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/vm_pager.h>
+#include <vm/vm_zone.h>
#include <vm/swap_pager.h>
static vm_object_t default_pager_alloc __P((void *, vm_ooffset_t, vm_prot_t,
OpenPOWER on IntegriCloud