Lines Matching refs:gfs2_holder

60 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
313 static inline int may_grant(const struct gfs2_glock *gl, const struct gfs2_holder *gh) in may_grant()
315 …const struct gfs2_holder *gh_head = list_first_entry(&gl->gl_holders, const struct gfs2_holder, gh… in may_grant()
334 static void gfs2_holder_wake(struct gfs2_holder *gh) in gfs2_holder_wake()
353 struct gfs2_holder *gh, *tmp; in do_error()
383 struct gfs2_holder *gh, *tmp; in do_promote()
429 static inline struct gfs2_holder *find_first_waiter(const struct gfs2_glock *gl) in find_first_waiter()
431 struct gfs2_holder *gh; in find_first_waiter()
496 struct gfs2_holder *gh; in finish_xmote()
590 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target) in do_xmote()
718 static inline struct gfs2_holder *find_first_holder(const struct gfs2_glock *gl) in find_first_holder()
720 struct gfs2_holder *gh; in find_first_holder()
723 gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, gh_list); in find_first_holder()
741 struct gfs2_holder *gh = NULL; in run_queue()
810 struct gfs2_holder gh; in gfs2_glock_poke()
1117 struct gfs2_holder *gh) in gfs2_holder_init()
1140 void gfs2_holder_reinit(unsigned int state, u16 flags, struct gfs2_holder *gh) in gfs2_holder_reinit()
1156 void gfs2_holder_uninit(struct gfs2_holder *gh) in gfs2_holder_uninit()
1182 int gfs2_glock_wait(struct gfs2_holder *gh) in gfs2_glock_wait()
1192 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending()
1212 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait()
1334 static inline void add_to_queue(struct gfs2_holder *gh) in add_to_queue()
1341 struct gfs2_holder *gh2; in add_to_queue()
1382 gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, gh_list); in add_to_queue()
1413 int gfs2_glock_nq(struct gfs2_holder *gh) in gfs2_glock_nq()
1448 int gfs2_glock_poll(struct gfs2_holder *gh) in gfs2_glock_poll()
1459 void gfs2_glock_dq(struct gfs2_holder *gh) in gfs2_glock_dq()
1510 void gfs2_glock_dq_wait(struct gfs2_holder *gh) in gfs2_glock_dq_wait()
1524 void gfs2_glock_dq_uninit(struct gfs2_holder *gh) in gfs2_glock_dq_uninit()
1544 unsigned int state, u16 flags, struct gfs2_holder *gh) in gfs2_glock_nq_num()
1567 const struct gfs2_holder *gh_a = *(const struct gfs2_holder **)arg_a; in glock_compare()
1568 const struct gfs2_holder *gh_b = *(const struct gfs2_holder **)arg_b; in glock_compare()
1589 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync()
1590 struct gfs2_holder **p) in nq_m_sync()
1598 sort(p, num_gh, sizeof(struct gfs2_holder *), glock_compare, NULL); in nq_m_sync()
1624 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m()
1626 struct gfs2_holder *tmp[4]; in gfs2_glock_nq_m()
1627 struct gfs2_holder **pph = tmp; in gfs2_glock_nq_m()
1639 pph = kmalloc_array(num_gh, sizeof(struct gfs2_holder *), in gfs2_glock_nq_m()
1660 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m()
1700 const struct gfs2_holder *gh; in gfs2_should_freeze()
2085 static void dump_holder(struct seq_file *seq, const struct gfs2_holder *gh, in dump_holder()
2169 const struct gfs2_holder *gh; in gfs2_dump_glock()