Lines Matching refs:gfs2_glock
57 struct gfs2_glock *gl; /* current glock struct */
61 typedef void (*glock_examiner) (struct gfs2_glock * gl);
63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
78 .key_offset = offsetof(struct gfs2_glock, gl_name),
79 .head_offset = offsetof(struct gfs2_glock, gl_node),
119 static void wake_up_glock(struct gfs2_glock *gl) in wake_up_glock()
129 struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu); in gfs2_glock_dealloc()
139 void gfs2_glock_free(struct gfs2_glock *gl) in gfs2_glock_free()
157 void gfs2_glock_hold(struct gfs2_glock *gl) in gfs2_glock_hold()
170 static int demote_ok(const struct gfs2_glock *gl) in demote_ok()
184 void gfs2_glock_add_to_lru(struct gfs2_glock *gl) in gfs2_glock_add_to_lru()
198 static void gfs2_glock_remove_from_lru(struct gfs2_glock *gl) in gfs2_glock_remove_from_lru()
216 static void __gfs2_glock_queue_work(struct gfs2_glock *gl, unsigned long delay) { in __gfs2_glock_queue_work()
229 static void gfs2_glock_queue_work(struct gfs2_glock *gl, unsigned long delay) { in gfs2_glock_queue_work()
235 static void __gfs2_glock_put(struct gfs2_glock *gl) in __gfs2_glock_put()
253 void gfs2_glock_queue_put(struct gfs2_glock *gl) in gfs2_glock_queue_put()
264 void gfs2_glock_put(struct gfs2_glock *gl) in gfs2_glock_put()
280 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant()
313 static void do_error(struct gfs2_glock *gl, const int ret) in do_error()
340 static int do_promote(struct gfs2_glock *gl) in do_promote()
391 static inline struct gfs2_holder *find_first_waiter(const struct gfs2_glock *gl) in find_first_waiter()
409 static void state_change(struct gfs2_glock *gl, unsigned int new_state) in state_change()
434 static void gfs2_demote_wake(struct gfs2_glock *gl) in gfs2_demote_wake()
449 static void finish_xmote(struct gfs2_glock *gl, unsigned int ret) in finish_xmote()
535 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target) in do_xmote()
597 static inline struct gfs2_holder *find_first_holder(const struct gfs2_glock *gl) in find_first_holder()
616 static void run_queue(struct gfs2_glock *gl, const int nonblock) in run_queue()
669 struct gfs2_glock *gl = container_of(work, struct gfs2_glock, gl_delete); in delete_work_func()
692 struct gfs2_glock *gl = container_of(work, struct gfs2_glock, gl_work.work); in glock_work_func()
736 static struct gfs2_glock *find_insert_glock(struct lm_lockname *name, in find_insert_glock()
737 struct gfs2_glock *new) in find_insert_glock()
741 struct gfs2_glock *gl; in find_insert_glock()
785 struct gfs2_glock **glp) in gfs2_glock_get()
791 struct gfs2_glock *gl, *tmp; in gfs2_glock_get()
883 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags, in gfs2_holder_init()
961 static void handle_callback(struct gfs2_glock *gl, unsigned int state, in handle_callback()
1012 struct gfs2_glock *gl = gh->gh_gl; in add_to_queue()
1090 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_nq()
1137 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_dq()
1179 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_dq_wait()
1213 struct gfs2_glock *gl; in gfs2_glock_nq_num()
1333 void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state) in gfs2_glock_cb()
1366 static int gfs2_should_freeze(const struct gfs2_glock *gl) in gfs2_should_freeze()
1394 void gfs2_glock_complete(struct gfs2_glock *gl, int ret) in gfs2_glock_complete()
1417 struct gfs2_glock *gla, *glb; in glock_cmp()
1419 gla = list_entry(a, struct gfs2_glock, gl_lru); in glock_cmp()
1420 glb = list_entry(b, struct gfs2_glock, gl_lru); in glock_cmp()
1448 struct gfs2_glock *gl; in gfs2_dispose_glock_lru()
1453 gl = list_entry(list->next, struct gfs2_glock, gl_lru); in gfs2_dispose_glock_lru()
1487 struct gfs2_glock *gl; in gfs2_scan_glock_lru()
1494 gl = list_entry(lru_list.next, struct gfs2_glock, gl_lru); in gfs2_scan_glock_lru()
1547 struct gfs2_glock *gl; in glock_hash_walk()
1572 static void thaw_glock(struct gfs2_glock *gl) in thaw_glock()
1588 static void clear_glock(struct gfs2_glock *gl) in clear_glock()
1610 static void dump_glock(struct seq_file *seq, struct gfs2_glock *gl) in dump_glock()
1617 static void dump_glock_func(struct gfs2_glock *gl) in dump_glock_func()
1644 struct gfs2_glock *gl = ip->i_gl; in gfs2_glock_finish_truncate()
1725 static const char *gflags2str(char *buf, const struct gfs2_glock *gl) in gflags2str()
1779 void gfs2_dump_glock(struct seq_file *seq, const struct gfs2_glock *gl) in gfs2_dump_glock()
1810 struct gfs2_glock *gl = iter_ptr; in gfs2_glstats_seq_show()
1927 struct gfs2_glock *gl = gi->gl; in gfs2_glock_iter_next()