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/cmd/zdb/zdb.c
          +++ new/usr/src/cmd/zdb/zdb.c
↓ 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  /*
  23   23   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24      - * Copyright (c) 2013 by Delphix. All rights reserved.
       24 + * Copyright (c) 2012, 2014 by Delphix. All rights reserved.
  25   25   */
  26   26  
  27   27  #include <stdio.h>
  28   28  #include <unistd.h>
  29   29  #include <stdio_ext.h>
  30   30  #include <stdlib.h>
  31   31  #include <ctype.h>
  32   32  #include <sys/zfs_context.h>
  33   33  #include <sys/spa.h>
  34   34  #include <sys/spa_impl.h>
↓ open down ↓ 2707 lines elided ↑ open up ↑
2742 2742                  dds.dds_blocks = zdde->zdde_ref_blocks / refcnt;
2743 2743                  dds.dds_lsize = zdde->zdde_ref_lsize / refcnt;
2744 2744                  dds.dds_psize = zdde->zdde_ref_psize / refcnt;
2745 2745                  dds.dds_dsize = zdde->zdde_ref_dsize / refcnt;
2746 2746  
2747 2747                  dds.dds_ref_blocks = zdde->zdde_ref_blocks;
2748 2748                  dds.dds_ref_lsize = zdde->zdde_ref_lsize;
2749 2749                  dds.dds_ref_psize = zdde->zdde_ref_psize;
2750 2750                  dds.dds_ref_dsize = zdde->zdde_ref_dsize;
2751 2751  
2752      -                ddt_stat_add(&ddh_total.ddh_stat[highbit(refcnt) - 1], &dds, 0);
     2752 +                ddt_stat_add(&ddh_total.ddh_stat[highbit64(refcnt) - 1],
     2753 +                    &dds, 0);
2753 2754  
2754 2755                  umem_free(zdde, sizeof (*zdde));
2755 2756          }
2756 2757  
2757 2758          avl_destroy(&t);
2758 2759  
2759 2760          ddt_histogram_stat(&dds_total, &ddh_total);
2760 2761  
2761 2762          (void) printf("Simulated DDT histogram:\n");
2762 2763  
↓ open down ↓ 748 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX