Print this page
4374 dn_free_ranges should use range_tree_t
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Max Grossman <max.grossman@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzpool/common/sys/zfs_context.h
          +++ new/usr/src/lib/libzpool/common/sys/zfs_context.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24      - * Copyright (c) 2013 by Delphix. All rights reserved.
       24 + * Copyright (c) 2012, 2014 by Delphix. All rights reserved.
  25   25   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  26   26   */
  27   27  
  28   28  #ifndef _SYS_ZFS_CONTEXT_H
  29   29  #define _SYS_ZFS_CONTEXT_H
  30   30  
  31   31  #ifdef  __cplusplus
  32   32  extern "C" {
  33   33  #endif
  34   34  
↓ open down ↓ 474 lines elided ↑ open up ↑
 509  509  
 510  510  #define CPU_SEQID       (thr_self() & (max_ncpus - 1))
 511  511  
 512  512  #define kcred           NULL
 513  513  #define CRED()          NULL
 514  514  
 515  515  #define ptob(x)         ((x) * PAGESIZE)
 516  516  
 517  517  extern uint64_t physmem;
 518  518  
 519      -extern int highbit(ulong_t i);
      519 +extern int highbit64(uint64_t i);
 520  520  extern int random_get_bytes(uint8_t *ptr, size_t len);
 521  521  extern int random_get_pseudo_bytes(uint8_t *ptr, size_t len);
 522  522  
 523  523  extern void kernel_init(int);
 524  524  extern void kernel_fini(void);
 525  525  
 526  526  struct spa;
 527  527  extern void nicenum(uint64_t num, char *buf);
 528  528  extern void show_pool_stats(struct spa *);
 529  529  
↓ open down ↓ 150 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX