Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/ufs/lufs_log.c
          +++ new/usr/src/uts/common/fs/ufs/lufs_log.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  #include <sys/systm.h>
  27   30  #include <sys/types.h>
  28   31  #include <sys/vnode.h>
  29   32  #include <sys/errno.h>
  30   33  #include <sys/sysmacros.h>
  31   34  #include <sys/debug.h>
  32   35  #include <sys/kmem.h>
  33   36  #include <sys/conf.h>
  34   37  #include <sys/proc.h>
  35   38  #include <sys/cmn_err.h>
  36   39  #include <sys/fssnap_if.h>
  37   40  #include <sys/fs/ufs_inode.h>
  38   41  #include <sys/fs/ufs_filio.h>
  39   42  #include <sys/fs/ufs_log.h>
  40   43  #include <sys/fs/ufs_bio.h>
  41   44  #include <sys/atomic.h>
       45 +#include <sys/sunddi.h>
  42   46  
  43      -extern int              maxphys;
  44   47  extern uint_t           bypass_snapshot_throttle_key;
  45   48  
  46   49  extern struct kmem_cache        *lufs_sv;
  47   50  extern struct kmem_cache        *lufs_bp;
  48   51  
  49   52  static void
  50   53  makebusy(ml_unit_t *ul, buf_t *bp)
  51   54  {
  52   55          sema_p(&bp->b_sem);
  53   56          if ((bp->b_flags & B_ERROR) == 0)
↓ open down ↓ 1571 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX