Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/vm_pvn.c
          +++ new/usr/src/uts/common/vm/vm_pvn.c
↓ open down ↓ 336 lines elided ↑ open up ↑
 337  337                  }
 338  338          }
 339  339  }
 340  340  
 341  341  /*
 342  342   * Automagic pageout.
 343  343   * When memory gets tight, start freeing pages popping out of the
 344  344   * write queue.
 345  345   */
 346  346  int     write_free = 1;
 347      -pgcnt_t pages_before_pager = 200;       /* LMXXX */
      347 +volatile pgcnt_t pages_before_pager = 200;      /* LMXXX */
 348  348  
 349  349  /*
 350  350   * Routine to be called when page-out's complete.
 351  351   * The caller, typically VOP_PUTPAGE, has to explicity call this routine
 352  352   * after waiting for i/o to complete (biowait) to free the list of
 353  353   * pages associated with the buffer.  These pages must be locked
 354  354   * before i/o is initiated.
 355  355   *
 356  356   * If a write error occurs, the pages are marked as modified
 357  357   * so the write will be re-tried later.
↓ open down ↓ 862 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX