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()
178 u16 flags, struct gfs2_holder *gh,
181 u16 flags, struct gfs2_holder *gh) { in gfs2_holder_init() argument
182 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_); in gfs2_holder_init()
186 struct gfs2_holder *gh);
187 void gfs2_holder_uninit(struct gfs2_holder *gh);
188 int gfs2_glock_nq(struct gfs2_holder *gh);
189 int gfs2_glock_poll(struct gfs2_holder *gh);
190 int gfs2_instantiate(struct gfs2_holder *gh);
191 int gfs2_glock_holder_ready(struct gfs2_holder *gh);
192 int gfs2_glock_wait(struct gfs2_holder *gh);
194 void gfs2_glock_dq(struct gfs2_holder *gh);
195 void gfs2_glock_dq_wait(struct gfs2_holder *gh);
196 void gfs2_glock_dq_uninit(struct gfs2_holder *gh);
200 struct gfs2_holder *gh);
232 struct gfs2_holder *gh) in gfs2_glock_nq_init() argument
236 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_); in gfs2_glock_nq_init()
238 error = gfs2_glock_nq(gh); in gfs2_glock_nq_init()
240 gfs2_holder_uninit(gh); in gfs2_glock_nq_init()
269 static inline void gfs2_holder_mark_uninitialized(struct gfs2_holder *gh) in gfs2_holder_mark_uninitialized() argument
271 gh->gh_gl = NULL; in gfs2_holder_mark_uninitialized()
274 static inline bool gfs2_holder_initialized(struct gfs2_holder *gh) in gfs2_holder_initialized() argument
276 return gh->gh_gl; in gfs2_holder_initialized()
279 static inline bool gfs2_holder_queued(struct gfs2_holder *gh) in gfs2_holder_queued() argument
281 return !list_empty(&gh->gh_list); in gfs2_holder_queued()