Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/ufs_inode.h
          +++ new/usr/src/uts/common/sys/fs/ufs_inode.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) 1983, 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 ↓ 444 lines elided ↑ open up ↑
 477  478          kstat_named_t in_poc;           /* # push-on-close's */
 478  479  };
 479  480  
 480  481  #ifdef _KERNEL
 481  482  
 482  483  /*
 483  484   * Extended attributes
 484  485   */
 485  486  
 486  487  #define XATTR_DIR_NAME  "/@/"
 487      -extern int      ufs_ninode;             /* high-water mark for inode cache */
      488 +extern volatile int     ufs_ninode;     /* high-water mark for inode cache */
 488  489  
 489  490  extern struct vnodeops *ufs_vnodeops;   /* vnode operations for ufs */
 490  491  extern const struct fs_operation_def ufs_vnodeops_template[];
 491  492  
 492  493  /*
 493  494   * Convert between inode pointers and vnode pointers
 494  495   */
 495  496  #define VTOI(VP)        ((struct inode *)(VP)->v_data)
 496  497  #define ITOV(IP)        ((struct vnode *)(IP)->i_vnode)
 497  498  
↓ open down ↓ 528 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX