Lines Matching defs:gl

127 	void (*lm_put_lock) (struct gfs2_glock *gl);
128 int (*lm_lock) (struct gfs2_glock *gl, unsigned int req_state,
130 void (*lm_cancel) (struct gfs2_glock *gl);
139 static inline struct gfs2_holder *gfs2_glock_is_locked_by_me(struct gfs2_glock *gl)
145 spin_lock(&gl->gl_lockref.lock);
147 list_for_each_entry(gh, &gl->gl_holders, gh_list) {
155 spin_unlock(&gl->gl_lockref.lock);
160 static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
162 if (gl->gl_ops->go_flags & GLOF_ASPACE) {
164 container_of(gl, struct gfs2_glock_aspace, glock);
173 struct gfs2_glock *gfs2_glock_hold(struct gfs2_glock *gl);
174 void gfs2_glock_put(struct gfs2_glock *gl);
175 void gfs2_glock_queue_put(struct gfs2_glock *gl);
177 void __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state,
180 static inline void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state,
182 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_);
203 void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl,
205 #define GLOCK_BUG_ON(gl,x) do { if (unlikely(x)) { \
206 gfs2_dump_glock(NULL, gl, true); \
208 #define gfs2_glock_assert_warn(gl, x) do { if (unlikely(!(x))) { \
209 gfs2_dump_glock(NULL, gl, true); \
210 gfs2_assert_warn((gl)->gl_name.ln_sbd, (x)); } } \
212 #define gfs2_glock_assert_withdraw(gl, x) do { if (unlikely(!(x))) { \
213 gfs2_dump_glock(NULL, gl, true); \
214 gfs2_assert_withdraw((gl)->gl_name.ln_sbd, (x)); } } \
222 * @gl: the glock
230 static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
236 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_);
245 void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state);
246 void gfs2_glock_complete(struct gfs2_glock *gl, int ret);
247 bool gfs2_queue_try_to_evict(struct gfs2_glock *gl);
248 void gfs2_cancel_delete_work(struct gfs2_glock *gl);
253 void gfs2_glock_add_to_lru(struct gfs2_glock *gl);
254 void gfs2_glock_free(struct gfs2_glock *gl);
264 void glock_set_object(struct gfs2_glock *gl, void *object);
265 void glock_clear_object(struct gfs2_glock *gl, void *object);
284 void gfs2_inode_remember_delete(struct gfs2_glock *gl, u64 generation);
285 bool gfs2_inode_already_deleted(struct gfs2_glock *gl, u64 generation);