Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/page.h
          +++ new/usr/src/uts/common/vm/page.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1986, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  26   27  /*        All Rights Reserved   */
  27   28  
  28   29  /*
  29   30   * University Copyright- Copyright (c) 1982, 1986, 1988
  30   31   * The Regents of the University of California
  31   32   * All Rights Reserved
  32   33   *
↓ open down ↓ 634 lines elided ↑ open up ↑
 667  668  extern  page_t **page_hash;
 668  669  
 669  670  extern  pad_mutex_t page_llocks[];      /* page logical lock mutex */
 670  671  extern  kmutex_t freemem_lock;          /* freemem lock */
 671  672  
 672  673  extern  pgcnt_t total_pages;            /* total pages in the system */
 673  674  
 674  675  /*
 675  676   * Variables controlling locking of physical memory.
 676  677   */
 677      -extern  pgcnt_t pages_pp_maximum;       /* tuning: lock + claim <= max */
      678 +extern  volatile pgcnt_t pages_pp_maximum; /* tuning: lock + claim <= max */
 678  679  extern  void init_pages_pp_maximum(void);
 679  680  
 680  681  struct lgrp;
 681  682  
 682  683  /* page_list_{add,sub} flags */
 683  684  
 684  685  /* which list */
 685  686  #define PG_FREE_LIST    0x0001
 686  687  #define PG_CACHE_LIST   0x0002
 687  688  
↓ open down ↓ 546 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX