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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/vm_page.c
          +++ new/usr/src/uts/common/vm/vm_page.c
↓ open down ↓ 71 lines elided ↑ open up ↑
  72   72  #include <vm/page.h>
  73   73  #include <vm/seg.h>
  74   74  #include <vm/pvn.h>
  75   75  #include <vm/seg_kmem.h>
  76   76  #include <vm/vm_dep.h>
  77   77  #include <sys/vm_usage.h>
  78   78  #include <fs/fs_subr.h>
  79   79  #include <sys/ddi.h>
  80   80  #include <sys/modctl.h>
  81   81  
  82      -static int nopageage = 0;
  83      -
  84   82  static pgcnt_t max_page_get;    /* max page_get request size in pages */
  85   83  pgcnt_t total_pages = 0;        /* total number of pages (used by /proc) */
  86   84  
  87   85  /*
  88   86   * freemem_lock protects all freemem variables:
  89   87   * availrmem. Also this lock protects the globals which track the
  90   88   * availrmem changes for accurate kernel footprint calculation.
  91   89   * See below for an explanation of these
  92   90   * globals.
  93   91   */
↓ open down ↓ 2590 lines elided ↑ open up ↑
2684 2682                   */
2685 2683                  PP_SETAGED(pp);
2686 2684                  pp->p_offset = (u_offset_t)-1;
2687 2685                  page_list_add(pp, PG_FREE_LIST | PG_LIST_TAIL);
2688 2686                  VM_STAT_ADD(pagecnt.pc_free_free);
2689 2687                  TRACE_1(TR_FAC_VM, TR_PAGE_FREE_FREE,
2690 2688                      "page_free_free:pp %p", pp);
2691 2689          } else {
2692 2690                  PP_CLRAGED(pp);
2693 2691  
2694      -                if (!dontneed || nopageage) {
     2692 +                if (!dontneed) {
2695 2693                          /* move it to the tail of the list */
2696 2694                          page_list_add(pp, PG_CACHE_LIST | PG_LIST_TAIL);
2697 2695  
2698 2696                          VM_STAT_ADD(pagecnt.pc_free_cache);
2699 2697                          TRACE_1(TR_FAC_VM, TR_PAGE_FREE_CACHE_TAIL,
2700 2698                              "page_free_cache_tail:pp %p", pp);
2701 2699                  } else {
2702 2700                          page_list_add(pp, PG_CACHE_LIST | PG_LIST_HEAD);
2703 2701  
2704 2702                          VM_STAT_ADD(pagecnt.pc_free_dontneed);
↓ open down ↓ 4788 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX