Searched refs:lockref (Results 1 - 7 of 7) sorted by relevance

/linux-master/include/linux/
H A Dlockref.h25 struct lockref { struct
37 extern void lockref_get(struct lockref *);
38 extern int lockref_put_return(struct lockref *);
39 extern int lockref_get_not_zero(struct lockref *);
40 extern int lockref_put_not_zero(struct lockref *);
41 extern int lockref_put_or_lock(struct lockref *);
43 extern void lockref_mark_dead(struct lockref *);
44 extern int lockref_get_not_dead(struct lockref *);
47 static inline bool __lockref_is_dead(const struct lockref *l)
H A Ddcache.h14 #include <linux/lockref.h>
93 struct lockref d_lockref; /* per-dentry lock and refcount */
/linux-master/lib/
H A Dlockref.c3 #include <linux/lockref.h>
13 struct lockref old; \
15 old.lock_count = READ_ONCE(lockref->lock_count); \
17 struct lockref new = old; \
19 if (likely(try_cmpxchg64_relaxed(&lockref->lock_count, \
38 * @lockref: pointer to lockref structure
43 void lockref_get(struct lockref *lockref) argument
51 spin_lock(&lockref
62 lockref_get_not_zero(struct lockref *lockref) argument
90 lockref_put_not_zero(struct lockref *lockref) argument
120 lockref_put_return(struct lockref *lockref) argument
138 lockref_put_or_lock(struct lockref *lockref) argument
161 lockref_mark_dead(struct lockref *lockref) argument
173 lockref_get_not_dead(struct lockref *lockref) argument
[all...]
H A DMakefile42 obj-y += lockref.o
/linux-master/fs/gfs2/
H A Dincore.h21 #include <linux/lockref.h>
341 struct lockref gl_lockref;
445 struct lockref qd_lockref;
H A Dquota.c52 #include <linux/lockref.h>
78 /* Lock order: qd_lock -> bucket lock -> qd->lockref.lock -> lru lock */
H A Dglock.c34 #include <linux/lockref.h>
255 * We are holding the lockref spinlock, and the work was still
499 * Since we unlock the lockref lock, we set a flag to indicate
1070 * __gfs2_glock_queue_work depends on the lockref spinlock begin held

Completed in 99 milliseconds