Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Drefcount.h60 uint64_t rc_count; member
113 uint64_t rc_count;
116 #define zfs_refcount_create(rc) ((rc)->rc_count = 0)
118 #define zfs_refcount_create_tracked(rc) ((rc)->rc_count = 0)
119 #define zfs_refcount_destroy(rc) ((rc)->rc_count = 0)
126 atomic_add_64(&(rc)->rc_count, number)
128 atomic_add_64(&(rc)->rc_count, -number)
130 atomic_add_64_nv(&(rc)->rc_count, number)
132 atomic_add_64_nv(&(rc)->rc_count, -number)
135 atomic_add_64(&(src)->rc_count, -__tmp); \
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Drefcount.c78 rc->rc_count = 0; in zfs_refcount_create()
103 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many()
131 return (atomic_load_64(&rc->rc_count)); in zfs_refcount_count()
152 rc->rc_count += number; in zfs_refcount_add_many()
153 count = rc->rc_count; in zfs_refcount_add_many()
193 ASSERT3U(rc->rc_count, >=, number); in zfs_refcount_remove_many()
215 rc->rc_count -= number; in zfs_refcount_remove_many()
216 count = rc->rc_count; in zfs_refcount_remove_many()
254 count = src->rc_count; in zfs_refcount_transfer()
256 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()
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c647 uint64_t rc_count; member
687 db.db_holds.rc_count, path); in dbuf()
3325 uint64_t rc_count; member
3361 addr, (longlong_t)rc.rc_count); in zfs_refcount()
3373 addr, (longlong_t)rc.rc_count, (longlong_t)rcr.rc_removed_count); in zfs_refcount()
3375 if (rct.rc_tracked && rc.rc_count > 0) in zfs_refcount()