Lines Matching refs:gh
141 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local
147 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me()
148 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me()
150 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
153 gh = NULL; in gfs2_glock_is_locked_by_me()
157 return gh; in gfs2_glock_is_locked_by_me()
189 u16 flags, struct gfs2_holder *gh);
191 struct gfs2_holder *gh);
192 extern void gfs2_holder_uninit(struct gfs2_holder *gh);
193 extern int gfs2_glock_nq(struct gfs2_holder *gh);
194 extern int gfs2_glock_poll(struct gfs2_holder *gh);
195 extern int gfs2_glock_wait(struct gfs2_holder *gh);
196 extern void gfs2_glock_dq(struct gfs2_holder *gh);
197 extern void gfs2_glock_dq_wait(struct gfs2_holder *gh);
198 extern void gfs2_glock_dq_uninit(struct gfs2_holder *gh);
202 struct gfs2_holder *gh);
222 struct gfs2_holder *gh) in gfs2_glock_nq_init() argument
226 gfs2_holder_init(gl, state, flags, gh); in gfs2_glock_nq_init()
228 error = gfs2_glock_nq(gh); in gfs2_glock_nq_init()
230 gfs2_holder_uninit(gh); in gfs2_glock_nq_init()
253 static inline void gfs2_holder_mark_uninitialized(struct gfs2_holder *gh) in gfs2_holder_mark_uninitialized() argument
255 gh->gh_gl = NULL; in gfs2_holder_mark_uninitialized()
258 static inline bool gfs2_holder_initialized(struct gfs2_holder *gh) in gfs2_holder_initialized() argument
260 return gh->gh_gl; in gfs2_holder_initialized()