Lines Matching defs:gl
126 void (*lm_put_lock) (struct kmem_cache *cachep, struct gfs2_glock *gl);
127 unsigned int (*lm_lock) (struct gfs2_glock *gl,
129 void (*lm_cancel) (struct gfs2_glock *gl);
147 static inline struct gfs2_holder *gfs2_glock_is_locked_by_me(struct gfs2_glock *gl)
153 spin_lock(&gl->gl_spin);
155 list_for_each_entry(gh, &gl->gl_holders, gh_list) {
163 spin_unlock(&gl->gl_spin);
168 static inline int gfs2_glock_is_held_excl(struct gfs2_glock *gl)
170 return gl->gl_state == LM_ST_EXCLUSIVE;
173 static inline int gfs2_glock_is_held_dfrd(struct gfs2_glock *gl)
175 return gl->gl_state == LM_ST_DEFERRED;
178 static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl)
180 return gl->gl_state == LM_ST_SHARED;
183 static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
185 if (gl->gl_ops->go_flags & GLOF_ASPACE)
186 return (struct address_space *)(gl + 1);
193 void gfs2_glock_hold(struct gfs2_glock *gl);
194 void gfs2_glock_put_nolock(struct gfs2_glock *gl);
195 int gfs2_glock_put(struct gfs2_glock *gl);
196 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
219 * @gl: the glock
227 static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
233 gfs2_holder_init(gl, state, flags, gh);
244 int gfs2_lvb_hold(struct gfs2_glock *gl);
245 void gfs2_lvb_unhold(struct gfs2_glock *gl);
247 void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state);
248 void gfs2_glock_complete(struct gfs2_glock *gl, int ret);