Searched refs:lockref (Results 1 – 5 of 5) sorted by relevance
11 struct lockref old; \13 old.lock_count = READ_ONCE(lockref->lock_count); \15 struct lockref new = old, prev = old; \17 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \40 void lockref_get(struct lockref *lockref) in lockref_get() argument48 spin_lock(&lockref->lock); in lockref_get()49 lockref->count++; in lockref_get()50 spin_unlock(&lockref->lock); in lockref_get()59 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument71 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 */
336 struct lockref gl_lockref;444 struct lockref qd_lockref;