Searched refs:dn_struct_rwlock (Results 1 – 13 of 13) sorted by relevance
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dnode.c | 128 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 D | dmu.c | 182 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 D | dnode_sync.c | 52 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 D | dmu_object.c | 186 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 D | dmu_zfetch.c | 502 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 D | dbuf.c | 378 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 D | spa_errlog.c | 250 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 D | dmu_tx.c | 214 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 D | dsl_scan.c | 3987 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 D | dsl_crypt.c | 2148 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 D | dmu_send.c | 1852 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 D | dmu_objset.c | 2326 if (RW_WRITE_HELD(&dn->dn_struct_rwlock)) in dmu_objset_userquota_get_ids()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dnode.h | 289 krwlock_t dn_struct_rwlock; member
|