zdb.c (265039) | zdb.c (265740) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 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 */ 26 27#include <stdio.h> 28#include <unistd.h> 29#include <stdio_ext.h> 30#include <stdlib.h> 31#include <ctype.h> 32#include <sys/zfs_context.h> --- 2703 unchanged lines hidden (view full) --- 2736 dds.dds_psize = zdde->zdde_ref_psize / refcnt; 2737 dds.dds_dsize = zdde->zdde_ref_dsize / refcnt; 2738 2739 dds.dds_ref_blocks = zdde->zdde_ref_blocks; 2740 dds.dds_ref_lsize = zdde->zdde_ref_lsize; 2741 dds.dds_ref_psize = zdde->zdde_ref_psize; 2742 dds.dds_ref_dsize = zdde->zdde_ref_dsize; 2743 | 25 */ 26 27#include <stdio.h> 28#include <unistd.h> 29#include <stdio_ext.h> 30#include <stdlib.h> 31#include <ctype.h> 32#include <sys/zfs_context.h> --- 2703 unchanged lines hidden (view full) --- 2736 dds.dds_psize = zdde->zdde_ref_psize / refcnt; 2737 dds.dds_dsize = zdde->zdde_ref_dsize / refcnt; 2738 2739 dds.dds_ref_blocks = zdde->zdde_ref_blocks; 2740 dds.dds_ref_lsize = zdde->zdde_ref_lsize; 2741 dds.dds_ref_psize = zdde->zdde_ref_psize; 2742 dds.dds_ref_dsize = zdde->zdde_ref_dsize; 2743 |
2744 ddt_stat_add(&ddh_total.ddh_stat[highbit(refcnt) - 1], &dds, 0); | 2744 ddt_stat_add(&ddh_total.ddh_stat[highbit64(refcnt) - 1], 2745 &dds, 0); |
2745 2746 umem_free(zdde, sizeof (*zdde)); 2747 } 2748 2749 avl_destroy(&t); 2750 2751 ddt_histogram_stat(&dds_total, &ddh_total); 2752 --- 751 unchanged lines hidden --- | 2746 2747 umem_free(zdde, sizeof (*zdde)); 2748 } 2749 2750 avl_destroy(&t); 2751 2752 ddt_histogram_stat(&dds_total, &ddh_total); 2753 --- 751 unchanged lines hidden --- |