Lines Matching refs:gh
138 struct gfs2_holder *gh;
144 list_for_each_entry(gh, &gl->gl_holders, gh_list) {
145 if (!test_bit(HIF_HOLDER, &gh->gh_iflags))
147 if (gh->gh_owner_pid == pid)
150 gh = NULL;
154 return gh;
186 u16 flags, struct gfs2_holder *gh);
188 struct gfs2_holder *gh);
189 extern void gfs2_holder_uninit(struct gfs2_holder *gh);
190 extern int gfs2_glock_nq(struct gfs2_holder *gh);
191 extern int gfs2_glock_poll(struct gfs2_holder *gh);
192 extern int gfs2_glock_wait(struct gfs2_holder *gh);
194 extern void gfs2_glock_dq(struct gfs2_holder *gh);
195 extern void gfs2_glock_dq_wait(struct gfs2_holder *gh);
196 extern void gfs2_glock_dq_uninit(struct gfs2_holder *gh);
200 struct gfs2_holder *gh);
225 * @gh: the holder structure
232 struct gfs2_holder *gh)
236 gfs2_holder_init(gl, state, flags, gh);
238 error = gfs2_glock_nq(gh);
240 gfs2_holder_uninit(gh);
267 static inline void gfs2_holder_mark_uninitialized(struct gfs2_holder *gh)
269 gh->gh_gl = NULL;
272 static inline bool gfs2_holder_initialized(struct gfs2_holder *gh)
274 return gh->gh_gl;
277 static inline bool gfs2_holder_queued(struct gfs2_holder *gh)
279 return !list_empty(&gh->gh_list);