Searched defs:ddt (Results 1 - 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dddt.h65 * On-disk ddt entry: key (name) and physical storage (value).
115 * In-core ddt entry
131 * In-core ddt
133 struct ddt { struct
180 extern void ddt_object_name(ddt_t *ddt, enum ddt_type type,
182 extern int ddt_object_walk(ddt_t *ddt, enum ddt_type type,
184 extern uint64_t ddt_object_count(ddt_t *ddt, enum ddt_type type,
186 extern int ddt_object_info(ddt_t *ddt, enum ddt_type type,
188 extern boolean_t ddt_object_exists(ddt_t *ddt, enum ddt_type type,
202 extern void ddt_phys_free(ddt_t *ddt, ddt_key_
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dddt.c31 #include <sys/ddt.h>
57 ddt_object_create(ddt_t *ddt, enum ddt_type type, enum ddt_class class, argument
60 spa_t *spa = ddt->ddt_spa;
61 objset_t *os = ddt->ddt_os;
62 uint64_t *objectp = &ddt->ddt_object[type][class];
63 boolean_t prehash = zio_checksum_table[ddt->ddt_checksum].ci_flags &
67 ddt_object_name(ddt, type, class, name);
78 &ddt->ddt_histogram[type][class], tx) == 0);
82 ddt_object_destroy(ddt_t *ddt, enum ddt_type type, enum ddt_class class, argument
85 spa_t *spa = ddt
104 ddt_object_load(ddt_t *ddt, enum ddt_type type, enum ddt_class class) argument
136 ddt_object_sync(ddt_t *ddt, enum ddt_type type, enum ddt_class class, dmu_tx_t *tx) argument
160 ddt_object_lookup(ddt_t *ddt, enum ddt_type type, enum ddt_class class, ddt_entry_t *dde) argument
171 ddt_object_prefetch(ddt_t *ddt, enum ddt_type type, enum ddt_class class, ddt_entry_t *dde) argument
182 ddt_object_update(ddt_t *ddt, enum ddt_type type, enum ddt_class class, ddt_entry_t *dde, dmu_tx_t *tx) argument
192 ddt_object_remove(ddt_t *ddt, enum ddt_type type, enum ddt_class class, ddt_entry_t *dde, dmu_tx_t *tx) argument
202 ddt_object_walk(ddt_t *ddt, enum ddt_type type, enum ddt_class class, uint64_t *walk, ddt_entry_t *dde) argument
212 ddt_object_count(ddt_t *ddt, enum ddt_type type, enum ddt_class class) argument
221 ddt_object_info(ddt_t *ddt, enum ddt_type type, enum ddt_class class, dmu_object_info_t *doi) argument
232 ddt_object_exists(ddt_t *ddt, enum ddt_type type, enum ddt_class class) argument
238 ddt_object_name(ddt_t *ddt, enum ddt_type type, enum ddt_class class, char *name) argument
327 ddt_phys_free(ddt_t *ddt, ddt_key_t *ddk, ddt_phys_t *ddp, uint64_t txg) argument
361 ddt_stat_generate(ddt_t *ddt, ddt_entry_t *dde, ddt_stat_t *dds) argument
407 ddt_stat_update(ddt_t *ddt, ddt_entry_t *dde, uint64_t neg) argument
457 ddt_t *ddt = spa->spa_ddt[c]; local
481 ddt_t *ddt = spa->spa_ddt[c]; local
525 ddt_ditto_copies_needed(ddt_t *ddt, ddt_entry_t *dde, ddt_phys_t *ddp_willref) argument
638 ddt_enter(ddt_t *ddt) argument
644 ddt_exit(ddt_t *ddt) argument
678 ddt_remove(ddt_t *ddt, ddt_entry_t *dde) argument
687 ddt_lookup(ddt_t *ddt, const blkptr_t *bp, boolean_t add) argument
752 ddt_t *ddt; local
803 ddt_t *ddt; local
820 ddt_table_free(ddt_t *ddt) argument
854 ddt_t *ddt = spa->spa_ddt[c]; local
888 ddt_t *ddt; local
910 ddt_repair_start(ddt_t *ddt, const blkptr_t *bp) argument
938 ddt_repair_done(ddt_t *ddt, ddt_entry_t *dde) argument
962 ddt_repair_entry(ddt_t *ddt, ddt_entry_t *dde, ddt_entry_t *rdde, zio_t *rio) argument
989 ddt_repair_table(ddt_t *ddt, zio_t *rio) argument
1014 ddt_sync_entry(ddt_t *ddt, ddt_entry_t *dde, dmu_tx_t *tx, uint64_t txg) argument
1081 ddt_sync_table(ddt_t *ddt, dmu_tx_t *tx, uint64_t txg) argument
1145 ddt_t *ddt = spa->spa_ddt[c]; local
1164 ddt_t *ddt = spa->spa_ddt[ddb->ddb_checksum]; local
[all...]
H A Dzio.c42 #include <sys/ddt.h>
2648 ddt_t *ddt = ddt_select(zio->io_spa, bp); local
2649 ddt_entry_t *dde = ddt_repair_start(ddt, bp);
2663 ddt_bp_create(ddt->ddt_checksum, &dde->dde_key, ddp,
2695 ddt_t *ddt = ddt_select(zio->io_spa, bp); local
2697 if (ddt == NULL) {
2711 ddt_repair_done(ddt, dde);
2721 zio_ddt_collision(zio_t *zio, ddt_t *ddt, ddt_entry_t *dde) argument
2770 ddt_exit(ddt);
2785 ddt_enter(ddt);
2841 ddt_t *ddt = ddt_select(zio->io_spa, zio->io_bp); local
2866 ddt_t *ddt = ddt_select(zio->io_spa, zio->io_bp); local
2893 ddt_t *ddt = ddt_select(zio->io_spa, bp); local
2927 ddt_t *ddt = ddt_select(spa, bp); local
3038 ddt_t *ddt = ddt_select(spa, bp); local
[all...]
H A Ddsl_scan.c49 #include <sys/ddt.h>
2523 ddt_t *ddt; local
2534 ddt = scn->scn_dp->dp_spa->spa_ddt[ddb->ddb_checksum];
2535 ASSERT(avl_first(&ddt->ddt_tree) == NULL);
2544 zfs_dbgmsg("scanned %llu ddt entries with class_max = %u; "
3523 "ddt bm=%llu/%llu/%llu/%llx",
3562 "%llu in ddt, %llu > maxtxg)",
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c61 #include <sys/ddt.h>
134 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, argument
139 if (ddt->cur_ddt_size >= ddt->max_ddt_size) {
140 if (ddt->ddt_full == B_FALSE) {
144 ddt->ddt_full = B_TRUE;
149 if ((dde = umem_cache_alloc(ddt->ddecache, UMEM_DEFAULT))
157 ddt->cur_ddt_size += sizeof (dedup_entry_t);
158 ddt->ddt_count++;
172 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_ argument
243 dedup_table_t ddt; local
[all...]
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c63 #include <sys/ddt.h>
1178 dump_dde(const ddt_t *ddt, const ddt_entry_t *dde, uint64_t index) argument
1189 ddt_bp_create(ddt->ddt_checksum, ddk, ddp, &blk);
1220 dump_ddt(ddt_t *ddt, enum ddt_type type, enum ddt_class class) argument
1229 error = ddt_object_info(ddt, type, class, &doi);
1235 if ((count = ddt_object_count(ddt, type, class)) == 0)
1241 ddt_object_name(ddt, type, class, name);
1252 zpool_dump_ddt(NULL, &ddt->ddt_histogram[type][class]);
1262 while ((error = ddt_object_walk(ddt, type, class, &walk, &dde)) == 0)
1263 dump_dde(ddt,
1280 ddt_t *ddt = spa->spa_ddt[c]; local
3055 ddt_t *ddt; local
3331 ddt_t *ddt = spa->spa_ddt[ddb.ddb_checksum]; local
5096 ddt_t *ddt = spa->spa_ddt[cksum]; local
[all...]

Completed in 187 milliseconds