Lines Matching refs:gfs2_holder
63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
64 static void __gfs2_glock_dq(struct gfs2_holder *gh);
354 struct gfs2_holder *current_gh, in may_grant()
355 struct gfs2_holder *gh) in may_grant()
395 static void gfs2_holder_wake(struct gfs2_holder *gh) in gfs2_holder_wake()
415 struct gfs2_holder *gh, *tmp; in do_error()
437 static inline struct gfs2_holder *find_first_holder(const struct gfs2_glock *gl) in find_first_holder()
439 struct gfs2_holder *gh; in find_first_holder()
442 gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, in find_first_holder()
456 int gfs2_instantiate(struct gfs2_holder *gh) in gfs2_instantiate()
505 struct gfs2_holder *gh, *current_gh; in do_promote()
537 static inline struct gfs2_holder *find_first_waiter(const struct gfs2_glock *gl) in find_first_waiter()
539 struct gfs2_holder *gh; in find_first_waiter()
603 struct gfs2_holder *gh; in finish_xmote()
695 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, in do_xmote()
856 struct gfs2_holder *gh = NULL; in run_queue()
962 struct gfs2_holder gh; in gfs2_glock_poke()
1290 struct gfs2_holder *gh, unsigned long ip) in __gfs2_holder_init()
1311 void gfs2_holder_reinit(unsigned int state, u16 flags, struct gfs2_holder *gh) in gfs2_holder_reinit()
1327 void gfs2_holder_uninit(struct gfs2_holder *gh) in gfs2_holder_uninit()
1355 int gfs2_glock_holder_ready(struct gfs2_holder *gh) in gfs2_glock_holder_ready()
1372 int gfs2_glock_wait(struct gfs2_holder *gh) in gfs2_glock_wait()
1382 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending()
1402 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait()
1423 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait()
1438 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait()
1495 static inline bool pid_is_meaningful(const struct gfs2_holder *gh) in pid_is_meaningful()
1514 static inline void add_to_queue(struct gfs2_holder *gh) in add_to_queue()
1521 struct gfs2_holder *gh2; in add_to_queue()
1530 struct gfs2_holder *current_gh; in add_to_queue()
1567 gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, gh_list); in add_to_queue()
1596 int gfs2_glock_nq(struct gfs2_holder *gh) in gfs2_glock_nq()
1632 int gfs2_glock_poll(struct gfs2_holder *gh) in gfs2_glock_poll()
1643 static void __gfs2_glock_dq(struct gfs2_holder *gh) in __gfs2_glock_dq()
1688 void gfs2_glock_dq(struct gfs2_holder *gh) in gfs2_glock_dq()
1733 void gfs2_glock_dq_wait(struct gfs2_holder *gh) in gfs2_glock_dq_wait()
1747 void gfs2_glock_dq_uninit(struct gfs2_holder *gh) in gfs2_glock_dq_uninit()
1767 unsigned int state, u16 flags, struct gfs2_holder *gh) in gfs2_glock_nq_num()
1790 const struct gfs2_holder *gh_a = *(const struct gfs2_holder **)arg_a; in glock_compare()
1791 const struct gfs2_holder *gh_b = *(const struct gfs2_holder **)arg_b; in glock_compare()
1813 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync()
1814 struct gfs2_holder **p) in nq_m_sync()
1822 sort(p, num_gh, sizeof(struct gfs2_holder *), glock_compare, NULL); in nq_m_sync()
1845 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m()
1847 struct gfs2_holder *tmp[4]; in gfs2_glock_nq_m()
1848 struct gfs2_holder **pph = tmp; in gfs2_glock_nq_m()
1859 pph = kmalloc_array(num_gh, sizeof(struct gfs2_holder *), in gfs2_glock_nq_m()
1880 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m()
1920 const struct gfs2_holder *gh; in gfs2_should_freeze()
2295 static void dump_holder(struct seq_file *seq, const struct gfs2_holder *gh, in dump_holder()
2388 const struct gfs2_holder *gh; in gfs2_dump_glock()
2823 struct gfs2_holder *fl_gh = &fp->f_fl_gh; in gfs2_glockfd_seq_show_flock()