Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Drefcount.h57 uint64_t rc_count; member
81 uint64_t rc_count;
84 #define refcount_create(rc) ((rc)->rc_count = 0)
85 #define refcount_create_untracked(rc) ((rc)->rc_count = 0)
86 #define refcount_destroy(rc) ((rc)->rc_count = 0)
87 #define refcount_destroy_many(rc, number) ((rc)->rc_count = 0)
88 #define refcount_is_zero(rc) ((rc)->rc_count == 0)
89 #define refcount_count(rc) ((rc)->rc_count)
90 #define refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count)
91 #define refcount_remove(rc, holder) atomic_dec_64_nv(&(rc)->rc_count)
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Drefcount.c66 rc->rc_count = 0; in refcount_create()
83 ASSERT(rc->rc_count == number); in refcount_destroy_many()
108 return (rc->rc_count == 0); in refcount_is_zero()
114 return (rc->rc_count); in refcount_count()
129 ASSERT(rc->rc_count >= 0); in refcount_add_many()
132 rc->rc_count += number; in refcount_add_many()
133 count = rc->rc_count; in refcount_add_many()
152 ASSERT(rc->rc_count >= number); in refcount_remove_many()
155 rc->rc_count -= number; in refcount_remove_many()
156 count = rc->rc_count; in 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()
/titanic_41/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c458 uint64_t rc_count; member
496 db.db_holds.rc_count, path); in dbuf()
2552 uint64_t rc_count; member
2588 addr, (longlong_t)rc.rc_count); in refcount()
2600 addr, (longlong_t)rc.rc_count, (longlong_t)rcr.rc_removed_count); in refcount()
2602 if (rct.rc_tracked && rc.rc_count > 0) in refcount()