]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/zdb/zdb.c
Illumos 5314 - Remove "dbuf phys" db->db_data pointer aliases in ZFS
[mirror_zfs.git] / cmd / zdb / zdb.c
index 1d76f2a7da3e7dc4cc029facde273d5a12526c63..29d26abc59c9e20909dc65c7bd4cbfd2befdcea8 100644 (file)
@@ -1928,8 +1928,8 @@ dump_dir(objset_t *os)
        if (dds.dds_type == DMU_OST_META) {
                dds.dds_creation_txg = TXG_INITIAL;
                usedobjs = BP_GET_FILL(os->os_rootbp);
-               refdbytes = os->os_spa->spa_dsl_pool->
-                   dp_mos_dir->dd_phys->dd_used_bytes;
+               refdbytes = dsl_dir_phys(os->os_spa->spa_dsl_pool->dp_mos_dir)->
+                   dd_used_bytes;
        } else {
                dmu_objset_space(os, &refdbytes, &scratch, &usedobjs, &scratch);
        }