lockref 352 fs/gfs2/incore.h struct lockref gl_lockref; lockref 465 fs/gfs2/incore.h struct lockref qd_lockref; lockref 101 include/linux/dcache.h struct lockref d_lockref; /* per-dentry lock and refcount */ lockref 37 include/linux/lockref.h extern void lockref_get(struct lockref *); lockref 38 include/linux/lockref.h extern int lockref_put_return(struct lockref *); lockref 39 include/linux/lockref.h extern int lockref_get_not_zero(struct lockref *); lockref 40 include/linux/lockref.h extern int lockref_put_not_zero(struct lockref *); lockref 41 include/linux/lockref.h extern int lockref_get_or_lock(struct lockref *); lockref 42 include/linux/lockref.h extern int lockref_put_or_lock(struct lockref *); lockref 44 include/linux/lockref.h extern void lockref_mark_dead(struct lockref *); lockref 45 include/linux/lockref.h extern int lockref_get_not_dead(struct lockref *); lockref 48 include/linux/lockref.h static inline bool __lockref_is_dead(const struct lockref *l) lockref 13 lib/lockref.c struct lockref old; \ lockref 15 lib/lockref.c old.lock_count = READ_ONCE(lockref->lock_count); \ lockref 17 lib/lockref.c struct lockref new = old, prev = old; \ lockref 19 lib/lockref.c old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \ lockref 44 lib/lockref.c void lockref_get(struct lockref *lockref) lockref 52 lib/lockref.c spin_lock(&lockref->lock); lockref 53 lib/lockref.c lockref->count++; lockref 54 lib/lockref.c spin_unlock(&lockref->lock); lockref 63 lib/lockref.c int lockref_get_not_zero(struct lockref *lockref) lockref 75 lib/lockref.c spin_lock(&lockref->lock); lockref 77 lib/lockref.c if (lockref->count > 0) { lockref 78 lib/lockref.c lockref->count++; lockref 81 lib/lockref.c spin_unlock(&lockref->lock); lockref 91 lib/lockref.c int lockref_put_not_zero(struct lockref *lockref) lockref 103 lib/lockref.c spin_lock(&lockref->lock); lockref 105 lib/lockref.c if (lockref->count > 1) { lockref 106 lib/lockref.c lockref->count--; lockref 109 lib/lockref.c spin_unlock(&lockref->lock); lockref 120 lib/lockref.c int lockref_get_or_lock(struct lockref *lockref) lockref 130 lib/lockref.c spin_lock(&lockref->lock); lockref 131 lib/lockref.c if (lockref->count <= 0) lockref 133 lib/lockref.c lockref->count++; lockref 134 lib/lockref.c spin_unlock(&lockref->lock); lockref 146 lib/lockref.c int lockref_put_return(struct lockref *lockref) lockref 164 lib/lockref.c int lockref_put_or_lock(struct lockref *lockref) lockref 174 lib/lockref.c spin_lock(&lockref->lock); lockref 175 lib/lockref.c if (lockref->count <= 1) lockref 177 lib/lockref.c lockref->count--; lockref 178 lib/lockref.c spin_unlock(&lockref->lock); lockref 187 lib/lockref.c void lockref_mark_dead(struct lockref *lockref) lockref 189 lib/lockref.c assert_spin_locked(&lockref->lock); lockref 190 lib/lockref.c lockref->count = -128; lockref 199 lib/lockref.c int lockref_get_not_dead(struct lockref *lockref) lockref 211 lib/lockref.c spin_lock(&lockref->lock); lockref 213 lib/lockref.c if (lockref->count >= 0) { lockref 214 lib/lockref.c lockref->count++; lockref 217 lib/lockref.c spin_unlock(&lockref->lock);