Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/lib/
Dlockref.c13 struct lockref old; \
15 old.lock_count = READ_ONCE(lockref->lock_count); \
17 struct lockref new = old, prev = old; \
19 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
44 void lockref_get(struct lockref *lockref) in lockref_get() argument
52 spin_lock(&lockref->lock); in lockref_get()
53 lockref->count++; in lockref_get()
54 spin_unlock(&lockref->lock); in lockref_get()
63 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument
75 spin_lock(&lockref->lock); in lockref_get_not_zero()
[all …]
DMakefile45 obj-y += lockref.o
/kernel/linux/linux-5.10/include/linux/
Dlockref.h25 struct lockref { struct
37 extern void lockref_get(struct lockref *); argument
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_get_or_lock(struct lockref *);
42 extern int lockref_put_or_lock(struct lockref *);
44 extern void lockref_mark_dead(struct lockref *);
45 extern int lockref_get_not_dead(struct lockref *);
48 static inline bool __lockref_is_dead(const struct lockref *l) in __lockref_is_dead()
Ddcache.h101 struct lockref d_lockref; /* per-dentry lock and refcount */
/kernel/linux/linux-5.10/fs/gfs2/
Dincore.h360 struct lockref gl_lockref;
467 struct lockref qd_lockref;
/kernel/linux/linux-5.10/Documentation/filesystems/
Dpath-lookup.rst167 This uses the lockref primitive to provide both a spinlock and a