Searched refs:lockref (Results 1 – 5 of 5) sorted by relevance
19 struct lockref old; \21 old.lock_count = READ_ONCE(lockref->lock_count); \23 struct lockref new = old, prev = old; \25 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \48 void lockref_get(struct lockref *lockref) in lockref_get() argument56 spin_lock(&lockref->lock); in lockref_get()57 lockref->count++; in lockref_get()58 spin_unlock(&lockref->lock); in lockref_get()67 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument79 spin_lock(&lockref->lock); in lockref_get_not_zero()[all …]
23 obj-y += lockref.o
24 struct lockref { struct36 extern void lockref_get(struct lockref *); argument37 extern int lockref_put_return(struct lockref *);38 extern int lockref_get_not_zero(struct lockref *);39 extern int lockref_get_or_lock(struct lockref *);40 extern int lockref_put_or_lock(struct lockref *);42 extern void lockref_mark_dead(struct lockref *);43 extern int lockref_get_not_dead(struct lockref *);46 static inline int __lockref_is_dead(const struct lockref *l) in __lockref_is_dead()
120 struct lockref d_lockref; /* per-dentry lock and refcount */
333 struct lockref gl_lockref;442 struct lockref qd_lockref;