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.h57 uint64_t rc_count; member
105 uint64_t rc_count;
108 #define zfs_refcount_create(rc) ((rc)->rc_count = 0)
109 #define zfs_refcount_create_untracked(rc) ((rc)->rc_count = 0)
110 #define zfs_refcount_create_tracked(rc) ((rc)->rc_count = 0)
111 #define zfs_refcount_destroy(rc) ((rc)->rc_count = 0)
112 #define zfs_refcount_destroy_many(rc, number) ((rc)->rc_count = 0)
114 #define zfs_refcount_count(rc) atomic_load_64(&(rc)->rc_count)
115 #define zfs_refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count)
116 #define zfs_refcount_remove(rc, holder) atomic_dec_64_nv(&(rc)->rc_count)
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Drefcount.c73 rc->rc_count = 0; in zfs_refcount_create()
98 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many()
124 return (atomic_load_64(&rc->rc_count)); in zfs_refcount_count()
134 count = atomic_add_64_nv(&(rc)->rc_count, number); in zfs_refcount_add_many()
145 rc->rc_count += number; in zfs_refcount_add_many()
146 count = rc->rc_count; in zfs_refcount_add_many()
175 count = atomic_add_64_nv(&(rc)->rc_count, -number); in zfs_refcount_remove_many()
184 ASSERT3U(rc->rc_count, >=, number); in zfs_refcount_remove_many()
203 rc->rc_count -= number; in zfs_refcount_remove_many()
204 count = rc->rc_count; in zfs_refcount_remove_many()
[all …]
H A Drrwlock.c169 rrl->rr_anon_rcount.rc_count++; in rrw_enter_read_impl()
244 if (!rrl->rr_writer && rrl->rr_linked_rcount.rc_count == 0) { in rrw_exit()
245 rrl->rr_anon_rcount.rc_count--; in rrw_exit()
246 if (rrl->rr_anon_rcount.rc_count == 0) in rrw_exit()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dsysctl_os.c352 &ARC_anon.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
355 &ARC_anon.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
365 &ARC_mru.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
368 &ARC_mru.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
378 &ARC_mru_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
381 &ARC_mru_ghost.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
391 &ARC_mfu.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
394 &ARC_mfu.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
404 &ARC_mfu_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
407 &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.h86 __entry->dn_tx_holds = dn->dn_tx_holds.rc_count;
87 __entry->dn_holds = dn->dn_holds.rc_count;
H A Dtrace_arc.h82 __entry->hdr_refcount = ab->b_l1hdr.b_refcnt.rc_count;
233 __entry->hdr_refcount = hdr->b_l1hdr.b_refcnt.rc_count;