Print this page
NEX-5164 backport illumos 6514 AS_* lock macros simplification
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
6514 AS_* lock macros simplification
Reviewed by: Piotr Jasiukajtis <estibi@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Albert Lee <trisk@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/vm_subr.c
          +++ new/usr/src/uts/common/os/vm_subr.c
↓ 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 ↓ 33 lines elided ↑ open up ↑
  66   67  #include <sys/sdt.h>
  67   68  
  68   69  #include <vm/anon.h>
  69   70  #include <vm/hat.h>
  70   71  #include <vm/as.h>
  71   72  #include <vm/seg.h>
  72   73  #include <vm/page.h>
  73   74  #include <vm/seg_vn.h>
  74   75  #include <vm/seg_kmem.h>
  75   76  
  76      -extern int maxphys;
       77 +#include <sys/sunddi.h>
  77   78  
  78   79  void
  79   80  minphys(struct buf *bp)
  80   81  {
  81   82          if (bp->b_bcount > maxphys)
  82   83                  bp->b_bcount = maxphys;
  83   84  }
  84   85  
  85   86  /*
  86   87   * use kmem_cache_create for physio buffers. This has shown
↓ open down ↓ 432 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX