Lines Matching defs:gl
34 static inline int gfs2_glock_is_locked_by_me(struct gfs2_glock *gl)
40 spin_lock(&gl->gl_spin);
41 list_for_each_entry(gh, &gl->gl_holders, gh_list) {
47 spin_unlock(&gl->gl_spin);
52 static inline int gfs2_glock_is_held_excl(struct gfs2_glock *gl)
54 return gl->gl_state == LM_ST_EXCLUSIVE;
57 static inline int gfs2_glock_is_held_dfrd(struct gfs2_glock *gl)
59 return gl->gl_state == LM_ST_DEFERRED;
62 static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl)
64 return gl->gl_state == LM_ST_SHARED;
67 static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl)
70 spin_lock(&gl->gl_spin);
71 ret = test_bit(GLF_DEMOTE, &gl->gl_flags) || !list_empty(&gl->gl_waiters3);
72 spin_unlock(&gl->gl_spin);
79 void gfs2_glock_hold(struct gfs2_glock *gl);
80 int gfs2_glock_put(struct gfs2_glock *gl);
81 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
102 * @gl: the glock
110 static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
116 gfs2_holder_init(gl, state, flags, gh);
127 int gfs2_lvb_hold(struct gfs2_glock *gl);
128 void gfs2_lvb_unhold(struct gfs2_glock *gl);
132 void gfs2_glock_schedule_for_reclaim(struct gfs2_glock *gl);