Deleted Added
full compact
ddt.c (263397) ddt.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) 2009, 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) 2009, 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 <sys/zfs_context.h>
28#include <sys/spa.h>
29#include <sys/spa_impl.h>
30#include <sys/zio.h>
31#include <sys/ddt.h>
32#include <sys/zap.h>

--- 378 unchanged lines hidden (view full) ---

411ddt_stat_update(ddt_t *ddt, ddt_entry_t *dde, uint64_t neg)
412{
413 ddt_stat_t dds;
414 ddt_histogram_t *ddh;
415 int bucket;
416
417 ddt_stat_generate(ddt, dde, &dds);
418
25 */
26
27#include <sys/zfs_context.h>
28#include <sys/spa.h>
29#include <sys/spa_impl.h>
30#include <sys/zio.h>
31#include <sys/ddt.h>
32#include <sys/zap.h>

--- 378 unchanged lines hidden (view full) ---

411ddt_stat_update(ddt_t *ddt, ddt_entry_t *dde, uint64_t neg)
412{
413 ddt_stat_t dds;
414 ddt_histogram_t *ddh;
415 int bucket;
416
417 ddt_stat_generate(ddt, dde, &dds);
418
419 bucket = highbit(dds.dds_ref_blocks) - 1;
419 bucket = highbit64(dds.dds_ref_blocks) - 1;
420 ASSERT(bucket >= 0);
421
422 ddh = &ddt->ddt_histogram[dde->dde_type][dde->dde_class];
423
424 ddt_stat_add(&ddh->ddh_stat[bucket], &dds, neg);
425}
426
427void

--- 737 unchanged lines hidden ---
420 ASSERT(bucket >= 0);
421
422 ddh = &ddt->ddt_histogram[dde->dde_type][dde->dde_class];
423
424 ddt_stat_add(&ddh->ddh_stat[bucket], &dds, neg);
425}
426
427void

--- 737 unchanged lines hidden ---