Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/include/sys/
H A Dzfs_refcount.h57 uint64_t rc_count; member
91 uint64_t rc_count;
94 #define zfs_refcount_create(rc) ((rc)->rc_count = 0)
95 #define zfs_refcount_create_untracked(rc) ((rc)->rc_count = 0)
96 #define zfs_refcount_create_tracked(rc) ((rc)->rc_count = 0)
97 #define zfs_refcount_destroy(rc) ((rc)->rc_count = 0)
100 #define zfs_refcount_count(rc) atomic_load_64(&(rc)->rc_count)
104 atomic_add_64_nv(&(rc)->rc_count, number)
106 atomic_add_64_nv(&(rc)->rc_count, -number)
109 atomic_add_64(&(src)->rc_count, -__tmp); \
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/zfs/
H A Drefcount.c66 rc->rc_count = 0; in zfs_refcount_create()
90 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many()
140 ASSERT3U(rc->rc_count, >=, 0); in zfs_refcount_add_many()
142 rc->rc_count += number; in zfs_refcount_add_many()
143 count = rc->rc_count; in zfs_refcount_add_many()
169 ASSERT3U(rc->rc_count, >=, number); in zfs_refcount_remove_many()
191 rc->rc_count -= number; in zfs_refcount_remove_many()
192 count = rc->rc_count; in zfs_refcount_remove_many()
220 count = src->rc_count; in zfs_refcount_transfer()
222 src->rc_count = 0; in zfs_refcount_transfer()
[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-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dsysctl_os.c233 &ARC_anon.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
236 &ARC_anon.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
240 &ARC_mru.arcs_size.rc_count, 0, "size of mru state");
242 &ARC_mru.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
245 &ARC_mru.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
251 &ARC_mru_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
254 &ARC_mru_ghost.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
258 &ARC_mfu.arcs_size.rc_count, 0, "size of mfu state");
260 &ARC_mfu.arcs_esize[ARC_BUFC_METADATA].rc_count, 0,
263 &ARC_mfu.arcs_esize[ARC_BUFC_DATA].rc_count, 0,
[all …]
/freebsd-13.1/sys/rpc/
H A Dreplay.c71 int rc_count; member
121 rc->rc_count++; in replay_alloc()
141 rc->rc_count--; in replay_free()
158 if (rc->rc_count < REPLAY_MAX && rc->rc_size <= rc->rc_maxsize) in replay_prune()
172 } while (rce && (rc->rc_count >= REPLAY_MAX in replay_prune()
/freebsd-13.1/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.h84 __entry->hdr_refcount = ab->b_l1hdr.b_refcnt.rc_count;
242 __entry->hdr_refcount = hdr->b_l1hdr.b_refcnt.rc_count;