Print this page
NEX-5184 backport illumos 6065 page hash: use a static inline instead of a macro
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
6065 page hash: use a static inline instead of a macro
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
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/vm/vm_page.c
          +++ new/usr/src/uts/common/vm/vm_page.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   * Copyright (c) 2015, Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  24   25   * Copyright (c) 2015, 2016 by Delphix. All rights reserved.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989  AT&T    */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  /*
  31   32   * University Copyright- Copyright (c) 1982, 1986, 1988
  32   33   * The Regents of the University of California
↓ open down ↓ 6181 lines elided ↑ open up ↑
6214 6215  #else
6215 6216  #define NUM_PAGE_CAPTURE_BUCKETS 64
6216 6217  #endif
6217 6218  
6218 6219  page_capture_hash_head_t page_capture_hash[NUM_PAGE_CAPTURE_BUCKETS];
6219 6220  
6220 6221  /* for now use a very simple hash based upon the size of a page struct */
6221 6222  #define PAGE_CAPTURE_HASH(pp)   \
6222 6223          ((int)(((uintptr_t)pp >> 7) & (NUM_PAGE_CAPTURE_BUCKETS - 1)))
6223 6224  
6224      -extern pgcnt_t swapfs_minfree;
6225      -
6226 6225  int page_trycapture(page_t *pp, uint_t szc, uint_t flags, void *datap);
6227 6226  
6228 6227  /*
6229 6228   * a callback function is required for page capture requests.
6230 6229   */
6231 6230  void
6232 6231  page_capture_register_callback(uint_t index, clock_t duration,
6233 6232      int (*cb_func)(page_t *, void *, uint_t))
6234 6233  {
6235 6234          ASSERT(pc_cb[index].cb_active == 0);
↓ open down ↓ 1238 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX