Lines Matching refs:gh
140 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local
146 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me()
147 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me()
149 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
152 gh = NULL; in gfs2_glock_is_locked_by_me()
156 return gh; in gfs2_glock_is_locked_by_me()
186 unsigned 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);
193 extern void gfs2_glock_dq(struct gfs2_holder *gh);
194 extern void gfs2_glock_dq_wait(struct gfs2_holder *gh);
195 extern void gfs2_glock_dq_uninit(struct gfs2_holder *gh);
199 struct gfs2_holder *gh);
219 struct gfs2_holder *gh) in gfs2_glock_nq_init() argument
223 gfs2_holder_init(gl, state, flags, gh); in gfs2_glock_nq_init()
225 error = gfs2_glock_nq(gh); in gfs2_glock_nq_init()
227 gfs2_holder_uninit(gh); in gfs2_glock_nq_init()