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.h48 uint64_t rc_count; member
96 uint64_t rc_count;
99 #define zfs_refcount_create(rc) ((rc)->rc_count = 0)
100 #define zfs_refcount_create_untracked(rc) ((rc)->rc_count = 0)
101 #define zfs_refcount_create_tracked(rc) ((rc)->rc_count = 0)
102 #define zfs_refcount_destroy(rc) ((rc)->rc_count = 0)
103 #define zfs_refcount_destroy_many(rc, number) ((rc)->rc_count = 0)
105 #define zfs_refcount_count(rc) atomic_load_64(&(rc)->rc_count)
106 #define zfs_refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count)
107 #define zfs_refcount_remove(rc, holder) atomic_dec_64_nv(&(rc)->rc_count)
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Drefcount.c66 rc->rc_count = 0; in zfs_refcount_create()
91 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many()
117 return (atomic_load_64(&rc->rc_count)); in zfs_refcount_count()
127 count = atomic_add_64_nv(&(rc)->rc_count, number); in zfs_refcount_add_many()
138 rc->rc_count += number; in zfs_refcount_add_many()
139 count = rc->rc_count; in zfs_refcount_add_many()
168 count = atomic_add_64_nv(&(rc)->rc_count, -number); in zfs_refcount_remove_many()
177 ASSERT3U(rc->rc_count, >=, number); in zfs_refcount_remove_many()
197 rc->rc_count -= number; in zfs_refcount_remove_many()
198 count = rc->rc_count; in zfs_refcount_remove_many()
[all …]
H A Drrwlock.c160 rrl->rr_anon_rcount.rc_count++; in rrw_enter_read_impl()
235 if (!rrl->rr_writer && rrl->rr_linked_rcount.rc_count == 0) { in rrw_exit()
236 rrl->rr_anon_rcount.rc_count--; in rrw_exit()
237 if (rrl->rr_anon_rcount.rc_count == 0) in rrw_exit()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dsysctl_os.c392 &ARC_anon.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
395 &ARC_anon.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
405 &ARC_mru.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
408 &ARC_mru.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
418 &ARC_mru_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
421 &ARC_mru_ghost.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
431 &ARC_mfu.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
434 &ARC_mfu.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
444 &ARC_mfu_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
447 &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.h77 __entry->dn_tx_holds = dn->dn_tx_holds.rc_count;
78 __entry->dn_holds = dn->dn_holds.rc_count;
H A Dtrace_arc.h73 __entry->hdr_refcount = ab->b_l1hdr.b_refcnt.rc_count;
224 __entry->hdr_refcount = hdr->b_l1hdr.b_refcnt.rc_count;