Home
last modified time | relevance | path

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

/linux/lib/
A Dlockref.c42 void lockref_get(struct lockref *lockref) in lockref_get() argument
51 lockref->count++; in lockref_get()
61 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument
76 lockref->count++; in lockref_get_not_zero()
89 int lockref_put_not_zero(struct lockref *lockref) in lockref_put_not_zero() argument
104 lockref->count--; in lockref_put_not_zero()
119 int lockref_put_return(struct lockref *lockref) in lockref_put_return() argument
137 int lockref_put_or_lock(struct lockref *lockref) in lockref_put_or_lock() argument
150 lockref->count--; in lockref_put_or_lock()
160 void lockref_mark_dead(struct lockref *lockref) in lockref_mark_dead() argument
[all …]
A DMakefile44 obj-y += lockref.o
/linux/include/linux/
A 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_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()
A Ddcache.h100 struct lockref d_lockref; /* per-dentry lock and refcount
/linux/fs/erofs/
A Dzutil.c222 spin_lock(&grp->lockref.lock); in erofs_workgroup_get()
224 spin_unlock(&grp->lockref.lock); in erofs_workgroup_get()
228 if (!grp->lockref.count++) in erofs_workgroup_get()
230 spin_unlock(&grp->lockref.lock); in erofs_workgroup_get()
294 if (grp->lockref.count == 1) in erofs_workgroup_put()
296 --grp->lockref.count; in erofs_workgroup_put()
297 spin_unlock(&grp->lockref.lock); in erofs_workgroup_put()
305 spin_lock(&grp->lockref.lock); in erofs_try_to_release_workgroup()
306 if (grp->lockref.count) in erofs_try_to_release_workgroup()
324 lockref_mark_dead(&grp->lockref); in erofs_try_to_release_workgroup()
[all …]
A Dzdata.c567 spin_lock(&pcl->obj.lockref.lock); in z_erofs_bind_cache()
573 spin_unlock(&pcl->obj.lockref.lock); in z_erofs_bind_cache()
629 spin_lock(&pcl->obj.lockref.lock); in z_erofs_cache_release_folio()
630 if (pcl->obj.lockref.count <= 0) { in z_erofs_cache_release_folio()
641 spin_unlock(&pcl->obj.lockref.lock); in z_erofs_cache_release_folio()
692 spin_lock(&pcl->obj.lockref.lock); in z_erofs_attach_page()
700 spin_unlock(&pcl->obj.lockref.lock); in z_erofs_attach_page()
1394 spin_lock(&pcl->obj.lockref.lock); in z_erofs_fill_bio_vec()
1396 spin_unlock(&pcl->obj.lockref.lock); in z_erofs_fill_bio_vec()
1458 spin_lock(&pcl->obj.lockref.lock); in z_erofs_fill_bio_vec()
[all …]
A Dinternal.h214 struct lockref lockref; member
/linux/fs/gfs2/
A Dincore.h339 struct lockref gl_lockref;
443 struct lockref qd_lockref;
/linux/Documentation/filesystems/
A Dpath-lookup.rst167 This uses the lockref primitive to provide both a spinlock and a

Completed in 31 milliseconds