Searched refs:lockref (Results 1 – 7 of 7) sorted by relevance
13 struct lockref old; \42 void lockref_get(struct lockref *lockref) in lockref_get() argument51 lockref->count++; in lockref_get()61 bool lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument75 lockref->count++; in lockref_get_not_zero()90 int lockref_put_return(struct lockref *lockref) in lockref_put_return() argument108 bool lockref_put_or_lock(struct lockref *lockref) in lockref_put_or_lock() argument121 lockref->count--; in lockref_put_or_lock()131 void lockref_mark_dead(struct lockref *lockref) in lockref_mark_dead() argument143 bool lockref_get_not_dead(struct lockref *lockref) in lockref_get_not_dead() argument[all …]
51 obj-y += lockref.o
25 struct lockref { struct43 static inline void lockref_init(struct lockref *lockref) in lockref_init() argument45 spin_lock_init(&lockref->lock); in lockref_init()46 lockref->count = 1; in lockref_init()49 void lockref_get(struct lockref *lockref);50 int lockref_put_return(struct lockref *lockref);51 bool lockref_get_not_zero(struct lockref *lockref);52 bool lockref_put_or_lock(struct lockref *lockref);54 void lockref_mark_dead(struct lockref *lockref);55 bool lockref_get_not_dead(struct lockref *lockref);[all …]
109 struct lockref d_lockref; /* per-dentry lock and refcount
42 struct lockref lockref; member546 spin_lock(&pcl->lockref.lock); in z_erofs_bind_cache()603 spin_lock(&pcl->lockref.lock); in z_erofs_cache_release_folio()604 if (pcl->lockref.count <= 0) { in z_erofs_cache_release_folio()696 spin_lock(&pcl->lockref.lock); in z_erofs_get_pcluster()702 if (!pcl->lockref.count++) in z_erofs_get_pcluster()852 if (pcl->lockref.count) in __erofs_try_to_release_pcluster()878 spin_lock(&pcl->lockref.lock); in erofs_try_to_release_pcluster()918 if (!--pcl->lockref.count) { in z_erofs_put_pcluster()1460 spin_lock(&pcl->lockref.lock); in z_erofs_fill_bio_vec()[all …]
342 struct lockref gl_lockref;445 struct lockref qd_lockref;
167 This uses the lockref primitive to provide both a spinlock and a