Lines Matching defs:grp
129 static inline bool erofs_workgroup_try_to_freeze(struct erofs_workgroup *grp,
133 if (val != atomic_cmpxchg(&grp->refcount, val, EROFS_LOCKED_MAGIC)) {
140 static inline void erofs_workgroup_unfreeze(struct erofs_workgroup *grp,
148 atomic_set(&grp->refcount, orig_val);
152 static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp)
154 return atomic_cond_read_relaxed(&grp->refcount,
158 static inline bool erofs_workgroup_try_to_freeze(struct erofs_workgroup *grp,
163 if (val != atomic_read(&grp->refcount)) {
170 static inline void erofs_workgroup_unfreeze(struct erofs_workgroup *grp,
176 static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp)
178 int v = atomic_read(&grp->refcount);
407 int erofs_workgroup_put(struct erofs_workgroup *grp);
411 struct erofs_workgroup *grp);
412 void erofs_workgroup_free_rcu(struct erofs_workgroup *grp);