Print this page
patch lower-case-segops

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/cpr/cpr_dump.c
          +++ new/usr/src/uts/common/cpr/cpr_dump.c
↓ open down ↓ 654 lines elided ↑ open up ↑
 655  655          }
 656  656  
 657  657          return ((ksegtbl_entry_t *)NULL);
 658  658  }
 659  659  
 660  660  
 661  661  /*
 662  662   * Count pages within each kernel segment; call cpr_sparse_seg_check()
 663  663   * to find out whether a sparsely filled segment needs special
 664  664   * treatment (e.g. kvseg).
 665      - * Todo: A "SEGOP_CPR" like SEGOP_DUMP should be introduced, the cpr
      665 + * Todo: A "segop_cpr" like segop_dump should be introduced, the cpr
 666  666   *       module shouldn't need to know segment details like if it is
 667  667   *       sparsely filled or not (makes kseg_table obsolete).
 668  668   */
 669  669  pgcnt_t
 670  670  cpr_count_seg_pages(int mapflag, bitfunc_t bitfunc)
 671  671  {
 672  672          struct seg *segp;
 673  673          pgcnt_t pages;
 674  674          ksegtbl_entry_t *ste;
 675  675  
↓ open down ↓ 521 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX