Home
last modified time | relevance | path

Searched refs:lockref (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/lib/
Dlockref.c11 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() argument
48 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() argument
71 spin_lock(&lockref->lock); in lockref_get_not_zero()
[all …]
DMakefile23 obj-y += lockref.o
/linux-4.4.14/include/linux/
Dlockref.h24 struct lockref { struct
36 extern void lockref_get(struct lockref *); argument
37 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()
Ddcache.h120 struct lockref d_lockref; /* per-dentry lock and refcount */
/linux-4.4.14/fs/gfs2/
Dincore.h336 struct lockref gl_lockref;
444 struct lockref qd_lockref;