Lines Matching refs:dnh
404 uint64_t object, dnode_handle_t *dnh) in dnode_create() argument
418 dn->dn_handle = dnh; in dnode_create()
445 if (dnh->dnh_dnode != NULL) { in dnode_create()
449 return (dnh->dnh_dnode); in dnode_create()
469 dnh->dnh_dnode = dn; in dnode_create()
986 dnode_special_close(dnode_handle_t *dnh) in dnode_special_close() argument
988 dnode_t *dn = dnh->dnh_dnode; in dnode_special_close()
1000 zrl_add(&dnh->dnh_zrlock); in dnode_special_close()
1002 zrl_destroy(&dnh->dnh_zrlock); in dnode_special_close()
1003 dnh->dnh_dnode = NULL; in dnode_special_close()
1008 dnode_handle_t *dnh) in dnode_special_open() argument
1012 dn = dnode_create(os, dnp, NULL, object, dnh); in dnode_special_open()
1013 zrl_init(&dnh->dnh_zrlock); in dnode_special_open()
1024 dnode_handle_t *dnh = &children_dnodes->dnc_children[i]; in dnode_buf_evict_async() local
1032 if (dnh->dnh_dnode == NULL) { in dnode_buf_evict_async()
1033 zrl_destroy(&dnh->dnh_zrlock); in dnode_buf_evict_async()
1037 zrl_add(&dnh->dnh_zrlock); in dnode_buf_evict_async()
1038 dn = dnh->dnh_dnode; in dnode_buf_evict_async()
1049 zrl_destroy(&dnh->dnh_zrlock); in dnode_buf_evict_async()
1050 dnh->dnh_dnode = NULL; in dnode_buf_evict_async()
1073 dnode_handle_t *dnh; in dnode_hold_impl() local
1140 dnh = &children_dnodes->dnc_children[0]; in dnode_hold_impl()
1142 zrl_init(&dnh[i].dnh_zrlock); in dnode_hold_impl()
1150 zrl_destroy(&dnh[i].dnh_zrlock); in dnode_hold_impl()
1160 dnh = &children_dnodes->dnc_children[idx]; in dnode_hold_impl()
1161 zrl_add(&dnh->dnh_zrlock); in dnode_hold_impl()
1162 dn = dnh->dnh_dnode; in dnode_hold_impl()
1166 dn = dnode_create(os, phys, db, object, dnh); in dnode_hold_impl()
1176 zrl_remove(&dnh->dnh_zrlock); in dnode_hold_impl()
1181 dbuf_add_ref(db, dnh); in dnode_hold_impl()
1185 zrl_remove(&dnh->dnh_zrlock); in dnode_hold_impl()
1236 dnode_handle_t *dnh = dn->dn_handle; in dnode_rele_and_unlock() local
1250 ASSERT(refs > 0 || dnh->dnh_zrlock.zr_owner != curthread); in dnode_rele_and_unlock()
1262 dbuf_rele(db, dnh); in dnode_rele_and_unlock()