Print this page
5302 vm: remove 'nopageage' static global

@@ -77,12 +77,10 @@
 #include <sys/vm_usage.h>
 #include <fs/fs_subr.h>
 #include <sys/ddi.h>
 #include <sys/modctl.h>
 
-static int nopageage = 0;
-
 static pgcnt_t max_page_get;    /* max page_get request size in pages */
 pgcnt_t total_pages = 0;        /* total number of pages (used by /proc) */
 
 /*
  * freemem_lock protects all freemem variables:

@@ -2689,11 +2687,11 @@
                 TRACE_1(TR_FAC_VM, TR_PAGE_FREE_FREE,
                     "page_free_free:pp %p", pp);
         } else {
                 PP_CLRAGED(pp);
 
-                if (!dontneed || nopageage) {
+                if (!dontneed) {
                         /* move it to the tail of the list */
                         page_list_add(pp, PG_CACHE_LIST | PG_LIST_TAIL);
 
                         VM_STAT_ADD(pagecnt.pc_free_cache);
                         TRACE_1(TR_FAC_VM, TR_PAGE_FREE_CACHE_TAIL,