| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | dnode_sync.c | 670 dnp->dn_nlevels = 1; in dnode_sync() 674 dnp->dn_type = dn->dn_type; in dnode_sync() 681 ASSERT(dnp->dn_nlevels > 1 || in dnode_sync() 688 BP_GET_LSIZE(&dnp->dn_blkptr[0]) == 1 << dnp->dn_indblkshift); in dnode_sync() 691 dnp->dn_type = dn->dn_type; in dnode_sync() 701 dnp->dn_datablkszsec || in dnode_sync() 703 dnp->dn_datablkszsec = in dnode_sync() 710 dnp->dn_bonuslen = 0; in dnode_sync() 713 ASSERT(dnp->dn_bonuslen <= in dnode_sync() 813 dnp->dn_maxblkid = in dnode_sync() [all …]
|
| H A D | dmu_traverse.c | 226 switch (resume_skip_check(td, dnp, zb)) { in traverse_visitbp() 288 err = td->td_func(td->td_spa, NULL, bp, zb, dnp, in traverse_visitbp() 324 err = traverse_visitbp(td, dnp, in traverse_visitbp() 454 (dnp->dn_indblkshift - SPA_BLKPTRSHIFT); in traverse_visitbp() 469 for (j = 0; j < dnp->dn_nblkptr; j++) { in prefetch_dnode_metadata() 474 if (dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) { in prefetch_dnode_metadata() 494 err = td->td_func(td->td_spa, NULL, bp, &czb, dnp, in traverse_dnode() 502 for (j = 0; j < dnp->dn_nblkptr; j++) { in traverse_dnode() 504 err = traverse_visitbp(td, dnp, &dnp->dn_blkptr[j], &czb); in traverse_dnode() 511 err = traverse_visitbp(td, dnp, DN_SPILL_BLKPTR(dnp), &czb); in traverse_dnode() [all …]
|
| H A D | dmu_diff.c | 89 report_dnode(dmu_diffarg_t *da, uint64_t object, dnode_phys_t *dnp) in report_dnode() argument 91 ASSERT(dnp != NULL); in report_dnode() 92 if (dnp->dn_type == DMU_OT_NONE) in report_dnode() 107 #define DBP_SPAN(dnp, level) \ argument 108 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \ 109 (level) * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT))) 114 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in diff_cb() argument 127 uint64_t span = DBP_SPAN(dnp, zb->zb_level); in diff_cb()
|
| H A D | dnode.c | 325 dnp->dn_datablkszsec = BSWAP_16(dnp->dn_datablkszsec); in dnode_byteswap() 326 dnp->dn_bonuslen = BSWAP_16(dnp->dn_bonuslen); in dnode_byteswap() 327 dnp->dn_extra_slots = BSWAP_8(dnp->dn_extra_slots); in dnode_byteswap() 328 dnp->dn_maxblkid = BSWAP_64(dnp->dn_maxblkid); in dnode_byteswap() 329 dnp->dn_used = BSWAP_64(dnp->dn_used); in dnode_byteswap() 377 dnode_byteswap(dnp); in dnode_buf_byteswap() 460 dn->dn_phys = dnp; in dnode_create() 1327 *dnp = dn; in dnode_hold_impl() 1561 ASSERT3P(dnp, !=, NULL); in dnode_hold_impl() 1566 *dnp = dn; in dnode_hold_impl() [all …]
|
| H A D | dmu_send.c | 180 dnode_phys_t *dnp; member 232 kmem_free(range->sru.object.dnp, size); in range_free() 697 dnode_phys_t *dnp) in dump_dnode() argument 715 if (dnp == NULL || dnp->dn_type == DMU_OT_NONE) in dump_dnode() 728 drro->drr_type = dnp->dn_type; in dump_dnode() 752 drro->drr_nlevels = dnp->dn_nlevels; in dump_dnode() 753 drro->drr_nblkptr = dnp->dn_nblkptr; in dump_dnode() 795 blkptr_t *bp = DN_SPILL_BLKPTR(dnp); in dump_dnode() 899 range->sru.object.dnp); in do_dump() 1127 size_t size = sizeof (*dnp) * (dnp->dn_extra_slots + 1); in send_cb() [all …]
|
| H A D | dsl_scan.c | 1501 if (dnp != NULL) { in scan_prefetch_ctx_create() 1610 if (dnp->dn_nblkptr == 0 && !(dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR)) in dsl_scan_prefetch_dnode() 1617 for (i = 0; i < dnp->dn_nblkptr; i++) { in dsl_scan_prefetch_dnode() 1839 dsl_scan_visitbp(cbp, &czb, dnp, in dsl_scan_recurse() 1917 for (j = 0; j < dnp->dn_nblkptr; j++) { in dsl_scan_visitdnode() 1921 dnp->dn_nlevels - 1, j); in dsl_scan_visitdnode() 1922 dsl_scan_visitbp(&dnp->dn_blkptr[j], in dsl_scan_visitdnode() 1923 &czb, dnp, ds, scn, ostype, tx); in dsl_scan_visitdnode() 1930 dsl_scan_visitbp(DN_SPILL_BLKPTR(dnp), in dsl_scan_visitdnode() 1931 &czb, dnp, ds, scn, ostype, tx); in dsl_scan_visitdnode() [all …]
|
| H A D | dmu_redact.c | 255 const zbookmark_phys_t *zb, const struct dnode_phys *dnp, void *arg) in redact_cb() argument 283 if (dnp->dn_type == DMU_OT_NONE || in redact_cb() 324 bp_span_in_blocks(dnp->dn_indblkshift, zb->zb_level); in redact_cb() 327 bp_span_in_blocks(dnp->dn_indblkshift, zb->zb_level)) - 1; in redact_cb() 331 ((SPA_MINBLOCKSIZE * dnp->dn_datablkszsec) / in redact_cb() 335 1) * ((SPA_MINBLOCKSIZE * dnp->dn_datablkszsec) / in redact_cb() 346 record->indblkshift = dnp->dn_indblkshift; in redact_cb() 347 record->datablksz = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT; in redact_cb()
|
| H A D | bptree.c | 153 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in bptree_visit_cb() argument
|
| H A D | dmu.c | 2129 dnode_phys_t *dnp = dn->dn_phys; in __dmu_object_info_from_dnode() local 2142 doi->doi_physical_blocks_512 = (DN_USED_BYTES(dnp) + 256) >> 9; in __dmu_object_info_from_dnode() 2145 for (int i = 0; i < dnp->dn_nblkptr; i++) in __dmu_object_info_from_dnode() 2146 doi->doi_fill_count += BP_GET_FILL(&dnp->dn_blkptr[i]); in __dmu_object_info_from_dnode()
|
| H A D | dbuf.c | 4409 dnode_phys_t *dnp = in dbuf_write_ready() local 4413 if (dnp->dn_type != DMU_OT_NONE) { in dbuf_write_ready() 4415 i += dnp->dn_extra_slots * in dbuf_write_ready() 4756 dnode_phys_t *dnp = db->db.db_data; in dbuf_remap() local 4760 i += dnp[i].dn_extra_slots + 1) { in dbuf_remap() 4761 for (int j = 0; j < dnp[i].dn_nblkptr; j++) { in dbuf_remap() 4764 dbuf_remap_impl(dn, &dnp[i].dn_blkptr[j], lock, in dbuf_remap()
|
| H A D | dmu_objset.c | 1537 dnode_phys_t *dnp = &os->os_phys->os_meta_dnode; in dmu_objset_write_ready() local 1550 for (int i = 0; i < dnp->dn_nblkptr; i++) in dmu_objset_write_ready() 1551 fill += BP_GET_FILL(&dnp->dn_blkptr[i]); in dmu_objset_write_ready()
|
| H A D | zio.c | 4956 zbookmark_subtree_completed(const dnode_phys_t *dnp, in zbookmark_subtree_completed() argument 4964 if (dnp == NULL) in zbookmark_subtree_completed() 4982 return (zbookmark_compare(dnp->dn_datablkszsec, dnp->dn_indblkshift, in zbookmark_subtree_completed()
|
| H A D | dsl_destroy.c | 710 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in kill_blkptr() argument
|
| H A D | spa.c | 2222 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in spa_load_verify_cb() argument
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | dnode.h | 122 #define DN_BONUS(dnp) ((void*)((dnp)->dn_bonus + \ argument 124 #define DN_MAX_BONUS_LEN(dnp) \ argument 125 ((dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) ? \ 126 (uint8_t *)DN_SPILL_BLKPTR(dnp) - (uint8_t *)DN_BONUS(dnp) : \ 127 (uint8_t *)(dnp + (dnp->dn_extra_slots + 1)) - (uint8_t *)DN_BONUS(dnp)) 129 #define DN_USED_BYTES(dnp) (((dnp)->dn_flags & DNODE_FLAG_USED_BYTES) ? \ argument 130 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT) 271 #define DN_SPILL_BLKPTR(dnp) ((blkptr_t *)((char *)(dnp) + \ argument 421 void *ref, dnode_t **dnp); 423 void *ref, dnode_t **dnp); [all …]
|
| H A D | dmu_traverse.h | 43 const zbookmark_phys_t *zb, const struct dnode_phys *dnp, void *arg);
|
| H A D | zio.h | 702 boolean_t zbookmark_subtree_completed(const struct dnode_phys *dnp,
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zio_crypt.c | 818 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local 826 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus() 827 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus() 829 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus() 831 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus() 1471 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode() 1474 bcopy(dnp, &ddnp[i], (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode() 1492 bcopy(dnp, aadp, crypt_len); in zio_crypt_init_uios_dnode() 1519 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode() 1520 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_init_uios_dnode() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 884 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local 892 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus() 893 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus() 895 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus() 897 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus() 1657 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode() 1660 bcopy(dnp, &ddnp[i], (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode() 1678 bcopy(dnp, aadp, crypt_len); in zio_crypt_init_uios_dnode() 1705 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode() 1706 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_init_uios_dnode() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 2147 if (dnp == NULL) { in blkid2offset() 2285 const dnode_phys_t *dnp) in print_indirect() argument 2291 ASSERT3U(BP_GET_TYPE(bp), ==, dnp->dn_type); in print_indirect() 2299 for (l = dnp->dn_nlevels - 1; l >= -1; l--) { in print_indirect() 2322 print_indirect(spa, bp, zb, dnp); in visit_indirect() 2347 err = visit_indirect(spa, dnp, cbp, &czb); in visit_indirect() 2364 dnode_phys_t *dnp = dn->dn_phys; in dump_indirect() local 2371 dn->dn_object, dnp->dn_nlevels - 1, 0); in dump_indirect() 2372 for (j = 0; j < dnp->dn_nblkptr; j++) { in dump_indirect() 2375 &dnp->dn_blkptr[j], &czb); in dump_indirect() [all …]
|