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);
65 static void handle_callback(struct gfs2_glock *gl, unsigned int state,
81 .key_offset = offsetof(struct gfs2_glock, gl_name),
82 .head_offset = offsetof(struct gfs2_glock, gl_node),
122 static void wake_up_glock(struct gfs2_glock *gl) in wake_up_glock()
132 struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu); in gfs2_glock_dealloc()
156 static bool glock_blocked_by_withdraw(struct gfs2_glock *gl) in glock_blocked_by_withdraw()
170 void gfs2_glock_free(struct gfs2_glock *gl) in gfs2_glock_free()
189 void gfs2_glock_hold(struct gfs2_glock *gl) in gfs2_glock_hold()
202 static int demote_ok(const struct gfs2_glock *gl) in demote_ok()
222 void gfs2_glock_add_to_lru(struct gfs2_glock *gl) in gfs2_glock_add_to_lru()
239 static void gfs2_glock_remove_from_lru(struct gfs2_glock *gl) in gfs2_glock_remove_from_lru()
257 static void __gfs2_glock_queue_work(struct gfs2_glock *gl, unsigned long delay) { in __gfs2_glock_queue_work()
270 static void gfs2_glock_queue_work(struct gfs2_glock *gl, unsigned long delay) { in gfs2_glock_queue_work()
276 static void __gfs2_glock_put(struct gfs2_glock *gl) in __gfs2_glock_put()
298 void gfs2_glock_queue_put(struct gfs2_glock *gl) in gfs2_glock_queue_put()
309 void gfs2_glock_put(struct gfs2_glock *gl) in gfs2_glock_put()
331 static inline bool may_grant(struct gfs2_glock *gl, in may_grant()
391 static void do_error(struct gfs2_glock *gl, const int ret) in do_error()
418 static void demote_incompat_holders(struct gfs2_glock *gl, in demote_incompat_holders()
454 static inline struct gfs2_holder *find_first_holder(const struct gfs2_glock *gl) in find_first_holder()
474 find_first_strong_holder(struct gfs2_glock *gl) in find_first_strong_holder()
495 struct gfs2_glock *gl = gh->gh_gl; in gfs2_instantiate()
540 static int do_promote(struct gfs2_glock *gl) in do_promote()
578 static inline struct gfs2_holder *find_first_waiter(const struct gfs2_glock *gl) in find_first_waiter()
595 static void state_change(struct gfs2_glock *gl, unsigned int new_state) in state_change()
617 static void gfs2_set_demote(struct gfs2_glock *gl) in gfs2_set_demote()
626 static void gfs2_demote_wake(struct gfs2_glock *gl) in gfs2_demote_wake()
641 static void finish_xmote(struct gfs2_glock *gl, unsigned int ret) in finish_xmote()
720 static bool is_system_glock(struct gfs2_glock *gl) in is_system_glock()
738 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, in do_xmote()
884 static void run_queue(struct gfs2_glock *gl, const int nonblock) in run_queue()
930 void gfs2_inode_remember_delete(struct gfs2_glock *gl, u64 generation) in gfs2_inode_remember_delete()
940 bool gfs2_inode_already_deleted(struct gfs2_glock *gl, u64 generation) in gfs2_inode_already_deleted()
949 static void gfs2_glock_poke(struct gfs2_glock *gl) in gfs2_glock_poke()
962 static bool gfs2_try_evict(struct gfs2_glock *gl) in gfs2_try_evict()
983 struct gfs2_glock *inode_gl = NULL; in gfs2_try_evict()
1011 struct gfs2_glock *gl = container_of(dwork, struct gfs2_glock, gl_delete); in delete_work_func()
1060 struct gfs2_glock *gl = container_of(work, struct gfs2_glock, gl_work.work); in glock_work_func()
1104 static struct gfs2_glock *find_insert_glock(struct lm_lockname *name, in find_insert_glock()
1105 struct gfs2_glock *new) in find_insert_glock()
1109 struct gfs2_glock *gl; in find_insert_glock()
1153 struct gfs2_glock **glp) in gfs2_glock_get()
1159 struct gfs2_glock *gl, *tmp; in gfs2_glock_get()
1255 void __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags, in __gfs2_holder_init()
1302 static void gfs2_glock_update_hold_time(struct gfs2_glock *gl, in gfs2_glock_update_hold_time()
1424 static void handle_callback(struct gfs2_glock *gl, unsigned int state, in handle_callback()
1485 struct gfs2_glock *gl = gh->gh_gl; in add_to_queue()
1574 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_nq()
1613 static inline bool needs_demote(struct gfs2_glock *gl) in needs_demote()
1621 struct gfs2_glock *gl = gh->gh_gl; in __gfs2_glock_dq()
1707 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_dq()
1724 struct gfs2_glock *gl = gh->gh_gl; in gfs2_glock_dq_wait()
1758 struct gfs2_glock *gl; in gfs2_glock_nq_num()
1875 void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state) in gfs2_glock_cb()
1934 static int gfs2_should_freeze(const struct gfs2_glock *gl) in gfs2_should_freeze()
1962 void gfs2_glock_complete(struct gfs2_glock *gl, int ret) in gfs2_glock_complete()
1986 struct gfs2_glock *gla, *glb; in glock_cmp()
1988 gla = list_entry(a, struct gfs2_glock, gl_lru); in glock_cmp()
1989 glb = list_entry(b, struct gfs2_glock, gl_lru); in glock_cmp()
2017 struct gfs2_glock *gl; in gfs2_dispose_glock_lru()
2022 gl = list_first_entry(list, struct gfs2_glock, gl_lru); in gfs2_dispose_glock_lru()
2057 struct gfs2_glock *gl; in gfs2_scan_glock_lru()
2064 gl = list_first_entry(&lru_list, struct gfs2_glock, gl_lru); in gfs2_scan_glock_lru()
2116 struct gfs2_glock *gl; in glock_hash_walk()
2135 bool gfs2_queue_delete_work(struct gfs2_glock *gl, unsigned long delay) in gfs2_queue_delete_work()
2148 void gfs2_cancel_delete_work(struct gfs2_glock *gl) in gfs2_cancel_delete_work()
2156 bool gfs2_delete_work_queued(const struct gfs2_glock *gl) in gfs2_delete_work_queued()
2161 static void flush_delete_work(struct gfs2_glock *gl) in flush_delete_work()
2183 static void thaw_glock(struct gfs2_glock *gl) in thaw_glock()
2199 static void clear_glock(struct gfs2_glock *gl) in clear_glock()
2224 static void dump_glock(struct seq_file *seq, struct gfs2_glock *gl, bool fsid) in dump_glock()
2231 static void dump_glock_func(struct gfs2_glock *gl) in dump_glock_func()
2236 static void withdraw_dq(struct gfs2_glock *gl) in withdraw_dq()
2349 static const char *gflags2str(char *buf, const struct gfs2_glock *gl) in gflags2str()
2412 void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl, bool fsid) in gfs2_dump_glock()
2455 struct gfs2_glock *gl = iter_ptr; in gfs2_glstats_seq_show()
2572 struct gfs2_glock *gl = gi->gl; in gfs2_glock_iter_next()
2884 struct gfs2_glock *gl; in gfs2_glockfd_seq_show()