summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_init.c4
-rw-r--r--sys/vm/vm_pager.c3
-rw-r--r--sys/vm/vm_pager.h1
3 files changed, 2 insertions, 6 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index 65df1a9..282dd5c 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -185,12 +185,12 @@ again:
panic("startup: table size inconsistency");
clean_map = kmem_suballoc(kernel_map, &kmi->clean_sva, &kmi->clean_eva,
- (nbuf*BKVASIZE) + (nswbuf*MAXPHYS) + pager_map_size);
+ (nbuf*BKVASIZE) + (nswbuf*MAXPHYS));
buffer_map = kmem_suballoc(clean_map, &kmi->buffer_sva,
&kmi->buffer_eva, (nbuf*BKVASIZE));
buffer_map->system_map = 1;
pager_map = kmem_suballoc(clean_map, &kmi->pager_sva, &kmi->pager_eva,
- (nswbuf*MAXPHYS) + pager_map_size);
+ (nswbuf*MAXPHYS));
pager_map->system_map = 1;
exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
(16*(ARG_MAX+(PAGE_SIZE*3))));
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 09280fb..b6fa7a6 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -176,9 +176,6 @@ int npagers = sizeof(pagertab) / sizeof(pagertab[0]);
* cleaning requests (NPENDINGIO == 64) * the maximum swap cluster size
* (MAXPHYS == 64k) if you want to get the most efficiency.
*/
-#define PAGER_MAP_SIZE (8 * 1024 * 1024)
-
-int pager_map_size = PAGER_MAP_SIZE;
vm_map_t pager_map;
static int bswneeded;
static vm_offset_t swapbkva; /* swap buffers kva */
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h
index b2f6c1b..6b30f80 100644
--- a/sys/vm/vm_pager.h
+++ b/sys/vm/vm_pager.h
@@ -91,7 +91,6 @@ MALLOC_DECLARE(M_VMPGDATA);
#endif
extern vm_map_t pager_map;
-extern int pager_map_size;
extern struct pagerops *pagertab[];
extern struct mtx pbuf_mtx;
OpenPOWER on IntegriCloud