Lines Matching refs:gfs2_glock
56 struct gfs2_glock *gl; /* current glock struct */
60 typedef void (*glock_examiner) (struct gfs2_glock * gl);
62 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
110 struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu); in gfs2_glock_dealloc()
120 void gfs2_glock_free(struct gfs2_glock *gl) in gfs2_glock_free()
135 static void gfs2_glock_hold(struct gfs2_glock *gl) in gfs2_glock_hold()
148 static int demote_ok(const struct gfs2_glock *gl) in demote_ok()
162 void gfs2_glock_add_to_lru(struct gfs2_glock *gl) in gfs2_glock_add_to_lru()
176 static void gfs2_glock_remove_from_lru(struct gfs2_glock *gl) in gfs2_glock_remove_from_lru()
193 void gfs2_glock_put(struct gfs2_glock *gl) in gfs2_glock_put()
222 static struct gfs2_glock *search_bucket(unsigned int hash, in search_bucket()
226 struct gfs2_glock *gl; in search_bucket()
249 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant()
282 static inline void do_error(struct gfs2_glock *gl, const int ret) in do_error()
309 static int do_promote(struct gfs2_glock *gl) in do_promote()
360 static inline struct gfs2_holder *find_first_waiter(const struct gfs2_glock *gl) in find_first_waiter()
378 static void state_change(struct gfs2_glock *gl, unsigned int new_state) in state_change()
403 static void gfs2_demote_wake(struct gfs2_glock *gl) in gfs2_demote_wake()
418 static void finish_xmote(struct gfs2_glock *gl, unsigned int ret) in finish_xmote()
504 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target) in do_xmote()
557 static inline struct gfs2_holder *find_first_holder(const struct gfs2_glock *gl) in find_first_holder()
576 static void run_queue(struct gfs2_glock *gl, const int nonblock) in run_queue()
630 struct gfs2_glock *gl = container_of(work, struct gfs2_glock, gl_delete); in delete_work_func()
653 struct gfs2_glock *gl = container_of(work, struct gfs2_glock, gl_work.work); in glock_work_func()
704 struct gfs2_glock **glp) in gfs2_glock_get()
708 struct gfs2_glock *gl, *tmp; in gfs2_glock_get()
801 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags, in gfs2_holder_init()
879 static void handle_callback(struct gfs2_glock *gl, unsigned int state, in handle_callback()
930 struct gfs2_glock *gl = gh->gh_gl; in add_to_queue()
1008 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_nq()
1056 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_dq()
1098 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_dq_wait()
1132 struct gfs2_glock *gl; in gfs2_glock_nq_num()
1251 void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state) in gfs2_glock_cb()
1285 static int gfs2_should_freeze(const struct gfs2_glock *gl) in gfs2_should_freeze()
1313 void gfs2_glock_complete(struct gfs2_glock *gl, int ret) in gfs2_glock_complete()
1338 struct gfs2_glock *gla, *glb; in glock_cmp()
1340 gla = list_entry(a, struct gfs2_glock, gl_lru); in glock_cmp()
1341 glb = list_entry(b, struct gfs2_glock, gl_lru); in glock_cmp()
1369 struct gfs2_glock *gl; in gfs2_dispose_glock_lru()
1374 gl = list_entry(list->next, struct gfs2_glock, gl_lru); in gfs2_dispose_glock_lru()
1409 struct gfs2_glock *gl; in gfs2_scan_glock_lru()
1416 gl = list_entry(lru_list.next, struct gfs2_glock, gl_lru); in gfs2_scan_glock_lru()
1467 struct gfs2_glock *gl; in examine_bucket()
1495 static void thaw_glock(struct gfs2_glock *gl) in thaw_glock()
1512 static void clear_glock(struct gfs2_glock *gl) in clear_glock()
1535 static void dump_glock(struct seq_file *seq, struct gfs2_glock *gl) in dump_glock()
1542 static void dump_glock_func(struct gfs2_glock *gl) in dump_glock_func()
1567 struct gfs2_glock *gl = ip->i_gl; in gfs2_glock_finish_truncate()
1648 static const char *gflags2str(char *buf, const struct gfs2_glock *gl) in gflags2str()
1702 void gfs2_dump_glock(struct seq_file *seq, const struct gfs2_glock *gl) in gfs2_dump_glock()
1733 struct gfs2_glock *gl = iter_ptr; in gfs2_glstats_seq_show()
1835 static inline struct gfs2_glock *glock_hash_chain(unsigned hash) in glock_hash_chain()
1838 struct gfs2_glock, gl_list); in glock_hash_chain()
1841 static inline struct gfs2_glock *glock_hash_next(struct gfs2_glock *gl) in glock_hash_next()
1844 struct gfs2_glock, gl_list); in glock_hash_next()
1849 struct gfs2_glock *gl; in gfs2_glock_iter_next()