Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/ufs_quota.h
          +++ new/usr/src/uts/common/sys/fs/ufs_quota.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 1999 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       28 + */
  26   29  
  27   30  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   31  /*        All Rights Reserved   */
  29   32  
  30   33  /*
  31   34   * University Copyright- Copyright (c) 1982, 1986, 1988
  32   35   * The Regents of the University of California
  33   36   * All Rights Reserved
  34   37   *
  35   38   * University Acknowledgment- Portions of this document are derived from
↓ open down ↓ 97 lines elided ↑ open up ↑
 133  136          (((uintptr_t)(mp) + (unsigned)(uid)) & (NDQHASH-1))
 134  137  
 135  138  struct  dqhead {
 136  139          struct  dquot   *dqh_forw;      /* MUST be first */
 137  140          struct  dquot   *dqh_back;      /* MUST be second */
 138  141  };
 139  142  
 140  143  extern struct dqhead dqhead[NDQHASH];
 141  144  
 142  145  extern struct dquot *dquot, *dquotNDQUOT;
 143      -extern int ndquot;
      146 +extern volatile int ndquot;
 144  147  extern krwlock_t dq_rwlock;             /* quota sub-system init lock */
 145  148  extern int quotas_initialized;          /* quota sub-system init flag */
 146  149  
 147  150  extern void qtinit();
 148  151  extern void qtinit2();
 149  152  extern struct dquot *getinoquota(struct inode *);
 150  153  extern int chkdq(struct inode *ip, long, int, struct cred *, char **errp,
 151  154                  size_t *lenp);
 152  155  extern int chkiq(struct ufsvfs *, int, struct inode *, uid_t, int,
 153  156                  struct cred *, char **errp, size_t *lenp);
↓ open down ↓ 47 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX