Home
last modified time | relevance | path

Searched refs:dn_struct_rwlock (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddnode.c128 rw_init(&dn->dn_struct_rwlock, NULL, RW_NOLOCKDEP, NULL); in dnode_cons()
193 rw_destroy(&dn->dn_struct_rwlock); in dnode_dest()
409 if (!RW_WRITE_HELD(&dn->dn_struct_rwlock)) { in dnode_verify()
410 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dnode_verify()
445 rw_exit(&dn->dn_struct_rwlock); in dnode_verify()
517 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_setbonuslen()
533 rw_exit(&dn->dn_struct_rwlock); in dnode_setbonuslen()
541 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_setbonus_type()
544 rw_exit(&dn->dn_struct_rwlock); in dnode_setbonus_type()
562 ASSERT(RW_WRITE_HELD(&dn->dn_struct_rwlock)); in dnode_rm_spill()
[all …]
H A Ddmu.c182 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread_by_dnode()
185 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread_by_dnode()
208 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread()
211 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread()
348 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_rm_spill()
350 rw_exit(&dn->dn_struct_rwlock); in dmu_rm_spill()
372 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_bonus_hold_by_dnode()
374 if (!rw_tryupgrade(&dn->dn_struct_rwlock)) { in dmu_bonus_hold_by_dnode()
375 rw_exit(&dn->dn_struct_rwlock); in dmu_bonus_hold_by_dnode()
376 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_bonus_hold_by_dnode()
[all …]
H A Ddnode_sync.c52 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_increase_indirection()
131 rw_exit(&dn->dn_struct_rwlock); in dnode_increase_indirection()
206 rw_enter(&dn->dn_struct_rwlock, RW_READER); in free_verify()
209 rw_exit(&dn->dn_struct_rwlock); in free_verify()
343 rw_enter(&dn->dn_struct_rwlock, RW_READER); in free_children()
346 rw_exit(&dn->dn_struct_rwlock); in free_children()
408 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dnode_sync_free_range_impl()
411 rw_exit(&dn->dn_struct_rwlock); in dnode_sync_free_range_impl()
530 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_evict_bonus()
540 rw_exit(&dn->dn_struct_rwlock); in dnode_evict_bonus()
H A Ddmu_object.c186 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_object_alloc_impl()
195 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
209 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
349 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_object_rm_spill()
354 rw_exit(&dn->dn_struct_rwlock); in dmu_object_rm_spill()
H A Ddmu_zfetch.c502 rw_enter(&zf->zf_dnode->dn_struct_rwlock, RW_READER); in dmu_zfetch_prepare()
511 rw_exit(&zf->zf_dnode->dn_struct_rwlock); in dmu_zfetch_prepare()
602 rw_exit(&zf->zf_dnode->dn_struct_rwlock); in dmu_zfetch_prepare()
685 rw_exit(&zf->zf_dnode->dn_struct_rwlock); in dmu_zfetch_prepare()
743 rw_enter(&zf->zf_dnode->dn_struct_rwlock, RW_READER); in dmu_zfetch_run()
756 rw_exit(&zf->zf_dnode->dn_struct_rwlock); in dmu_zfetch_run()
H A Ddbuf.c378 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dbuf_find_bonus()
383 rw_exit(&dn->dn_struct_rwlock); in dbuf_find_bonus()
2173 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dbuf_dirty_lightweight()
2204 rw_exit(&dn->dn_struct_rwlock); in dbuf_dirty_lightweight()
2212 rw_exit(&dn->dn_struct_rwlock); in dbuf_dirty_lightweight()
2431 if (!RW_WRITE_HELD(&dn->dn_struct_rwlock)) { in dbuf_dirty()
2432 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dbuf_dirty()
2480 rw_exit(&dn->dn_struct_rwlock); in dbuf_dirty()
2510 rw_exit(&dn->dn_struct_rwlock); in dbuf_dirty()
2688 if (RW_WRITE_HELD(&DB_DNODE(db)->dn_struct_rwlock)) in dmu_buf_will_dirty_impl()
[all …]
H A Dspa_errlog.c250 rw_enter(&dn->dn_struct_rwlock, RW_READER); in find_birth_txg()
257 rw_exit(&dn->dn_struct_rwlock); in find_birth_txg()
882 rw_enter(&dn->dn_struct_rwlock, RW_READER); in sync_upgrade_errlog()
890 rw_exit(&dn->dn_struct_rwlock); in sync_upgrade_errlog()
H A Ddmu_tx.c214 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_tx_check_ioerr()
216 rw_exit(&dn->dn_struct_rwlock); in dmu_tx_check_ioerr()
1096 ASSERT(!RW_WRITE_HELD(&dn->dn_struct_rwlock)); in dmu_tx_try_assign()
H A Ddsl_scan.c3987 rw_enter(&dn->dn_struct_rwlock, RW_READER); in read_by_block_level()
3992 rw_exit(&dn->dn_struct_rwlock); in read_by_block_level()
3999 rw_exit(&dn->dn_struct_rwlock); in read_by_block_level()
4014 rw_exit(&dn->dn_struct_rwlock); in read_by_block_level()
H A Ddsl_crypt.c2148 rw_enter(&mdn->dn_struct_rwlock, RW_WRITER); in dsl_crypto_recv_raw_objset_sync()
2150 rw_exit(&mdn->dn_struct_rwlock); in dsl_crypto_recv_raw_objset_sync()
H A Ddmu_send.c1852 rw_enter(&dn->dn_struct_rwlock, RW_READER); in send_reader_thread()
1899 rw_exit(&dn->dn_struct_rwlock); in send_reader_thread()
H A Ddmu_objset.c2326 if (RW_WRITE_HELD(&dn->dn_struct_rwlock)) in dmu_objset_userquota_get_ids()
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddnode.h289 krwlock_t dn_struct_rwlock; member