Home
last modified time | relevance | path

Searched refs:refcount_count (Results 1 – 12 of 12) sorted by relevance

/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Ddmu_tx.c400 if (refcount_count(&txh->txh_space_towrite) + in dmu_tx_count_write()
401 refcount_count(&txh->txh_space_tooverwrite) > in dmu_tx_count_write()
1234 towrite += refcount_count(&txh->txh_space_towrite); in dmu_tx_try_assign()
1235 tofree += refcount_count(&txh->txh_space_tofree); in dmu_tx_try_assign()
1236 tooverwrite += refcount_count(&txh->txh_space_tooverwrite); in dmu_tx_try_assign()
1237 tounref += refcount_count(&txh->txh_space_tounref); in dmu_tx_try_assign()
1238 tohold += refcount_count(&txh->txh_memory_tohold); in dmu_tx_try_assign()
1239 fudge += refcount_count(&txh->txh_fudge); in dmu_tx_try_assign()
1454 refcount_count(&txh->txh_space_towrite)); in dmu_tx_destroy()
1456 refcount_count(&txh->txh_space_tofree)); in dmu_tx_destroy()
[all …]
H A Drrwlock.c88 if (refcount_count(&rrl->rr_linked_rcount) == 0) in rrn_find()
123 if (refcount_count(&rrl->rr_linked_rcount) == 0) in rrn_find_and_remove()
176 ASSERT(refcount_count(&rrl->rr_anon_rcount) >= 0); in rrw_enter_read_impl()
219 while (refcount_count(&rrl->rr_anon_rcount) > 0 || in rrw_enter_write()
220 refcount_count(&rrl->rr_linked_rcount) > 0 || in rrw_enter_write()
H A Darc.c2250 refcnt = refcount_count(&hdr->b_l1hdr.b_refcnt); in arc_change_state()
3219 ASSERT0(refcount_count(&hdr->b_l1hdr.b_refcnt)); in arc_evict_hdr()
3520 while (refcount_count(&state->arcs_esize[type]) != 0) { in arc_flush_state()
3544 if (bytes > 0 && refcount_count(&state->arcs_esize[type]) > 0) { in arc_adjust_impl()
3545 delta = MIN(refcount_count(&state->arcs_esize[type]), bytes); in arc_adjust_impl()
3570 (int64_t)(refcount_count(&arc_anon->arcs_size) + in arc_adjust_meta()
3571 refcount_count(&arc_mru->arcs_size) - arc_p)); in arc_adjust_meta()
3581 (int64_t)(refcount_count(&arc_mfu->arcs_size) - (arc_c - arc_p))); in arc_adjust_meta()
3690 (int64_t)(refcount_count(&arc_anon->arcs_size) + in arc_adjust()
3691 refcount_count(&arc_mru->arcs_size) + arc_meta_used - arc_p)); in arc_adjust()
[all …]
H A Ddnode.c356 ASSERT3U(refcount_count(&dn->dn_holds), >=, 1); in dnode_setbonuslen()
373 ASSERT3U(refcount_count(&dn->dn_holds), >=, 1); in dnode_setbonus_type()
384 ASSERT3U(refcount_count(&dn->dn_holds), >=, 1); in dnode_rm_spill()
574 ASSERT3U(refcount_count(&dn->dn_holds), <=, 1); in dnode_allocate()
759 ASSERT(refcount_count(&odn->dn_tx_holds) == 0); in dnode_move_impl()
949 refcount = refcount_count(&odn->dn_holds); in dnode_move()
977 ASSERT(refcount == refcount_count(&ndn->dn_holds)); in dnode_move()
998 while (refcount_count(&dn->dn_holds) > 0) in dnode_special_close()
H A Ddbuf.c327 holds = refcount_count(&db->db_holds); in dbuf_verify_user()
438 return (refcount_count(&dbuf_cache_size) > in dbuf_cache_above_hiwater()
448 return (refcount_count(&dbuf_cache_size) > in dbuf_cache_above_lowater()
564 if (refcount_count(&dbuf_cache_size) > dbuf_cache_max_bytes) { in dbuf_evict_notify()
568 if (refcount_count(&dbuf_cache_size) > dbuf_cache_max_bytes) { in dbuf_evict_notify()
849 if (arc_released(db->db_buf) || refcount_count(&db->db_holds) > 1) { in dbuf_loan_arcbuf()
911 ASSERT(refcount_count(&db->db_holds) > 0); in dbuf_read_done()
1181 } else if (refcount_count(&db->db_holds) > db->db_dirtycnt) { in dbuf_fix_old_data()
1287 if (refcount_count(&db->db_holds) == 0) { in dbuf_free_range()
2004 refcount_count(&db->db_holds) - 1 > db->db_dirtycnt) { in dbuf_assign_arcbuf()
[all …]
H A Dspa_misc.c859 ASSERT3U(refcount_count(&spa->spa_refcount), ==, 0); in spa_remove()
963 ASSERT(refcount_count(&spa->spa_refcount) >= spa->spa_minref || in spa_open_ref()
975 ASSERT(refcount_count(&spa->spa_refcount) > spa->spa_minref || in spa_close()
1004 return (refcount_count(&spa->spa_refcount) == spa->spa_minref); in spa_refcount_zero()
H A Drefcount.c123 refcount_count(refcount_t *rc) in refcount_count() function
H A Dmetaslab.c995 qdepth = refcount_count(&mg->mg_alloc_queue_depth); in metaslab_group_allocatable()
1016 qdepth = refcount_count(&mgp->mg_alloc_queue_depth); in metaslab_group_allocatable()
3336 uint64_t reserved_slots = refcount_count(&mc->mc_alloc_slots); in metaslab_class_throttle_reserve()
H A Ddsl_destroy.c616 if (refcount_count(&ds->ds_longholds) != expected_holds) in dsl_destroy_head_check_impl()
H A Dspa.c2249 spa->spa_minref = refcount_count(&spa->spa_refcount); in spa_load()
3921 spa->spa_minref = refcount_count(&spa->spa_refcount); in spa_create()
6953 ASSERT0(refcount_count(&mg->mg_alloc_queue_depth)); in spa_sync()
6958 ASSERT0(refcount_count(&mc->mc_alloc_slots)); in spa_sync()
H A Dsa.c1136 ASSERT(refcount_count(&tab->sa_refcount)); in sa_tear_down()
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/
H A Drefcount.h71 int64_t refcount_count(refcount_t *rc);
96 #define refcount_count(rc) ((rc)->rc_count)