Searched refs:rc_count (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | refcount.h | 60 uint64_t rc_count; member 113 uint64_t rc_count; 116 #define zfs_refcount_create(rc) ((rc)->rc_count = 0) 117 #define zfs_refcount_create_untracked(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) 120 #define zfs_refcount_destroy_many(rc, number) ((rc)->rc_count = 0) 122 #define zfs_refcount_count(rc) atomic_load_64(&(rc)->rc_count) 123 #define zfs_refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count) 124 #define zfs_refcount_remove(rc, holder) atomic_dec_64_nv(&(rc)->rc_count) [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | refcount.c | 78 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() 141 count = atomic_add_64_nv(&(rc)->rc_count, number); in zfs_refcount_add_many() 152 rc->rc_count += number; in zfs_refcount_add_many() 153 count = rc->rc_count; in zfs_refcount_add_many() 184 count = atomic_add_64_nv(&(rc)->rc_count, -number); in zfs_refcount_remove_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() [all …]
|
H A D | rrwlock.c | 169 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 D | zfs.c | 647 uint64_t rc_count; member 687 db.db_holds.rc_count, path); in dbuf() 3360 uint64_t rc_count; member 3396 addr, (longlong_t)rc.rc_count); in zfs_refcount() 3408 addr, (longlong_t)rc.rc_count, (longlong_t)rcr.rc_removed_count); in zfs_refcount() 3410 if (rct.rc_tracked && rc.rc_count > 0) in zfs_refcount()
|