Searched refs:zfs_refcount_count (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
H A Darc_os.c140 zfs_refcount_count(&arc_mru->arcs_esize[ARC_BUFC_DATA]) +
141 zfs_refcount_count(&arc_mru->arcs_esize[ARC_BUFC_METADATA]) +
142 zfs_refcount_count(&arc_mfu->arcs_esize[ARC_BUFC_DATA]) +
143 zfs_refcount_count(&arc_mfu->arcs_esize[ARC_BUFC_METADATA]);
511 if (zfs_refcount_count(&ap->p_refcnt) >= 2)
H A Dzfs_znode.c295 ASSERT3S(zfs_refcount_count(&zh->zh_refcount), >, 0);
308 ASSERT3S(zfs_refcount_count(&zh->zh_refcount), >, 0);
/freebsd-13-stable/sys/contrib/openzfs/include/sys/
H A Dzfs_refcount.h72 int64_t zfs_refcount_count(zfs_refcount_t *);
100 #define zfs_refcount_count(rc) ((rc)->rc_count) macro
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
H A Drrwlock.c88 if (zfs_refcount_count(&rrl->rr_linked_rcount) == 0)
123 if (zfs_refcount_count(&rrl->rr_linked_rcount) == 0)
176 ASSERT(zfs_refcount_count(&rrl->rr_anon_rcount) >= 0);
219 while (zfs_refcount_count(&rrl->rr_anon_rcount) > 0 ||
220 zfs_refcount_count(&rrl->rr_linked_rcount) > 0 ||
H A Ddbuf_stats.c92 (ulong_t)zfs_refcount_count(&db->db_holds),
117 (ulong_t)zfs_refcount_count(&dn->dn_holds),
H A Darc.c2407 abi->abi_holds = zfs_refcount_count(&l1hdr->b_refcnt);
2443 refcnt = zfs_refcount_count(&hdr->b_l1hdr.b_refcnt);
3541 ASSERT0(zfs_refcount_count(&hdr->b_l1hdr.b_refcnt));
3986 ASSERT0(zfs_refcount_count(&hdr->b_l1hdr.b_refcnt));
4347 while (zfs_refcount_count(&state->arcs_esize[type]) != 0) {
4371 if (bytes > 0 && zfs_refcount_count(&state->arcs_esize[type]) > 0) {
4372 delta = MIN(zfs_refcount_count(&state->arcs_esize[type]),
4417 zfs_refcount_count(&arc_mru->arcs_esize[type]) > 0) {
4418 delta = MIN(zfs_refcount_count(&arc_mru->arcs_esize[type]),
4435 zfs_refcount_count(
[all...]
H A Ddmu_tx.c940 towrite += zfs_refcount_count(&txh->txh_space_towrite);
941 tohold += zfs_refcount_count(&txh->txh_memory_tohold);
1139 zfs_refcount_count(&txh->txh_space_towrite));
1141 zfs_refcount_count(&txh->txh_memory_tohold));
H A Ddnode.c388 ASSERT3U(zfs_refcount_count(&dn->dn_holds), >=, 1);
413 ASSERT3U(zfs_refcount_count(&dn->dn_holds), >=, 1);
424 ASSERT3U(zfs_refcount_count(&dn->dn_holds), >=, 1);
613 ASSERT3U(zfs_refcount_count(&dn->dn_holds), <=, 1);
807 ASSERT(zfs_refcount_count(&odn->dn_tx_holds) == 0);
995 refcount = zfs_refcount_count(&odn->dn_holds);
1023 ASSERT(refcount == zfs_refcount_count(&ndn->dn_holds));
1174 if (zfs_refcount_count(&dn->dn_holds) > 0)
1177 ASSERT3U(zfs_refcount_count(&dn->dn_holds), ==, 0);
H A Drefcount.c119 zfs_refcount_count(zfs_refcount_t *rc) function
H A Ddbuf.c439 if (zfs_refcount_count(
510 holds = zfs_refcount_count(&db->db_holds);
660 return (zfs_refcount_count(&dbuf_caches[DB_DBUF_CACHE].size) >
773 ds->metadata_cache_size_bytes.value.ui64 = zfs_refcount_count(
776 zfs_refcount_count(&dbuf_caches[DB_DBUF_CACHE].size);
1147 if (arc_released(db->db_buf) || zfs_refcount_count(&db->db_holds) > 1) {
1259 ASSERT(zfs_refcount_count(&db->db_holds) > 0);
1577 } else if (zfs_refcount_count(&db->db_holds) > db->db_dirtycnt) {
1843 if (zfs_refcount_count(&db->db_holds) == 0) {
2684 zfs_refcount_count(
[all...]
H A Ddsl_crypt.c97 ASSERT0(zfs_refcount_count(&wkey->wk_refcnt));
503 ASSERT(zfs_refcount_count(&dck->dck_holds) == 0);
862 } else if (zfs_refcount_count(&found_wkey->wk_refcnt) != 0) {
942 ASSERT3U(zfs_refcount_count(&km->km_refcnt), >=, 1);
959 ASSERT3U(zfs_refcount_count(&km->km_refcnt), >=, 1);
1578 ASSERT0(zfs_refcount_count(&found_wkey->wk_refcnt));
H A Ddmu_zfetch.c185 if (zfs_refcount_count(&zs->zs_refs) != 1)
H A Dspa_misc.c784 ASSERT3U(zfs_refcount_count(&spa->spa_refcount), ==, 0);
886 ASSERT(zfs_refcount_count(&spa->spa_refcount) >= spa->spa_minref ||
898 ASSERT(zfs_refcount_count(&spa->spa_refcount) > spa->spa_minref ||
927 return (zfs_refcount_count(&spa->spa_refcount) == spa->spa_minref);
H A Ddsl_destroy.c767 if (zfs_refcount_count(&ds->ds_longholds) != expected_holds)
H A Dspa.c2940 spa->spa_minref = zfs_refcount_count(&spa->spa_refcount);
5993 spa->spa_minref = zfs_refcount_count(&spa->spa_refcount);
8960 ASSERT0(zfs_refcount_count(
8973 ASSERT0(zfs_refcount_count(&normal->mc_allocator[i].
8975 ASSERT0(zfs_refcount_count(&special->mc_allocator[i].
8977 ASSERT0(zfs_refcount_count(&dedup->mc_allocator[i].
H A Dmetaslab.c1276 qdepth = zfs_refcount_count(&mga->mga_alloc_queue_depth);
1301 zfs_refcount_count(&mgap->mga_alloc_queue_depth);
5607 uint64_t reserved_slots = zfs_refcount_count(&mca->mca_alloc_slots);
H A Dsa.c1138 ASSERT(zfs_refcount_count(&tab->sa_refcount));
H A Ddsl_dataset.c3092 uint64_t holds = zfs_refcount_count(&ds->ds_longholds) -
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_dbuf.h75 __entry->db_holds = zfs_refcount_count(&db->db_holds); \

Completed in 773 milliseconds