Home
last modified time | relevance | path

Searched refs:rc_count (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_refcount.h58 uint64_t rc_count; member
106 uint64_t rc_count;
109 #define zfs_refcount_create(rc) ((rc)->rc_count = 0)
110 #define zfs_refcount_create_untracked(rc) ((rc)->rc_count = 0)
111 #define zfs_refcount_create_tracked(rc) ((rc)->rc_count = 0)
112 #define zfs_refcount_destroy(rc) ((rc)->rc_count = 0)
113 #define zfs_refcount_destroy_many(rc, number) ((rc)->rc_count = 0)
115 #define zfs_refcount_count(rc) atomic_load_64(&(rc)->rc_count)
116 #define zfs_refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count)
117 #define zfs_refcount_remove(rc, holder) atomic_dec_64_nv(&(rc)->rc_count)
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Drefcount.c76 rc->rc_count = 0; in zfs_refcount_create()
101 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many()
127 return (atomic_load_64(&rc->rc_count)); in zfs_refcount_count()
137 count = atomic_add_64_nv(&(rc)->rc_count, number); in zfs_refcount_add_many()
148 rc->rc_count += number; in zfs_refcount_add_many()
149 count = rc->rc_count; in zfs_refcount_add_many()
178 count = atomic_add_64_nv(&(rc)->rc_count, -number); in zfs_refcount_remove_many()
187 ASSERT3U(rc->rc_count, >=, number); in zfs_refcount_remove_many()
207 rc->rc_count -= number; in zfs_refcount_remove_many()
208 count = rc->rc_count; in zfs_refcount_remove_many()
[all …]
H A Drrwlock.c170 rrl->rr_anon_rcount.rc_count++; in rrw_enter_read_impl()
245 if (!rrl->rr_writer && rrl->rr_linked_rcount.rc_count == 0) { in rrw_exit()
246 rrl->rr_anon_rcount.rc_count--; in rrw_exit()
247 if (rrl->rr_anon_rcount.rc_count == 0) in rrw_exit()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dsysctl_os.c391 &ARC_anon.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
394 &ARC_anon.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
404 &ARC_mru.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
407 &ARC_mru.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
417 &ARC_mru_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
420 &ARC_mru_ghost.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
430 &ARC_mfu.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
433 &ARC_mfu.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
443 &ARC_mfu_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
446 &ARC_mfu_ghost.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
[all …]
/freebsd/sys/rpc/
H A Dreplay.c68 int rc_count; member
118 rc->rc_count++; in replay_alloc()
138 rc->rc_count--; in replay_free()
155 if (rc->rc_count < REPLAY_MAX && rc->rc_size <= rc->rc_maxsize) in replay_prune()
169 } while (rce && (rc->rc_count >= REPLAY_MAX in replay_prune()
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_dnode.h87 __entry->dn_tx_holds = dn->dn_tx_holds.rc_count;
88 __entry->dn_holds = dn->dn_holds.rc_count;
H A Dtrace_arc.h83 __entry->hdr_refcount = ab->b_l1hdr.b_refcnt.rc_count;
234 __entry->hdr_refcount = hdr->b_l1hdr.b_refcnt.rc_count;