Searched refs:lockref (Results 1 – 5 of 5) sorted by relevance
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, \42 void lockref_get(struct lockref *lockref) in lockref_get() argument50 spin_lock(&lockref->lock); in lockref_get()51 lockref->count++; in lockref_get()52 spin_unlock(&lockref->lock); in lockref_get()61 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument73 spin_lock(&lockref->lock); in lockref_get_not_zero()[all …]
46 obj-y += lockref.o
25 struct lockref { struct37 extern void lockref_get(struct lockref *); argument38 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) in __lockref_is_dead()
100 struct lockref d_lockref; /* per-dentry lock and refcount
48 struct lockref lockref; member569 spin_lock(&pcl->lockref.lock); in z_erofs_bind_cache()572 spin_unlock(&pcl->lockref.lock); in z_erofs_bind_cache()575 spin_unlock(&pcl->lockref.lock); in z_erofs_bind_cache()629 spin_lock(&pcl->lockref.lock); in z_erofs_cache_release_folio()630 if (pcl->lockref.count <= 0) { in z_erofs_cache_release_folio()641 spin_unlock(&pcl->lockref.lock); in z_erofs_cache_release_folio()692 spin_lock(&pcl->lockref.lock); in z_erofs_attach_page()697 spin_unlock(&pcl->lockref.lock); in z_erofs_attach_page()700 spin_unlock(&pcl->lockref.lock); in z_erofs_attach_page()[all …]