Lines Matching refs:gi

1925 static void gfs2_glock_iter_next(struct gfs2_glock_iter *gi, loff_t n)  in gfs2_glock_iter_next()  argument
1927 struct gfs2_glock *gl = gi->gl; in gfs2_glock_iter_next()
1936 gl = rhashtable_walk_next(&gi->hti); in gfs2_glock_iter_next()
1945 if (gl->gl_name.ln_sbd != gi->sdp) in gfs2_glock_iter_next()
1957 gi->gl = gl; in gfs2_glock_iter_next()
1963 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_start() local
1970 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
1971 rhashtable_walk_exit(&gi->hti); in gfs2_glock_seq_start()
1972 rhashtable_walk_enter(&gl_hash_table, &gi->hti); in gfs2_glock_seq_start()
1975 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
1978 rhashtable_walk_start(&gi->hti); in gfs2_glock_seq_start()
1980 gfs2_glock_iter_next(gi, n); in gfs2_glock_seq_start()
1981 gi->last_pos = *pos; in gfs2_glock_seq_start()
1982 return gi->gl; in gfs2_glock_seq_start()
1988 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_next() local
1991 gi->last_pos = *pos; in gfs2_glock_seq_next()
1992 gfs2_glock_iter_next(gi, 1); in gfs2_glock_seq_next()
1993 return gi->gl; in gfs2_glock_seq_next()
1999 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_stop() local
2001 rhashtable_walk_stop(&gi->hti); in gfs2_glock_seq_stop()
2061 struct gfs2_glock_iter *gi = seq->private; in __gfs2_glocks_open() local
2063 gi->sdp = inode->i_private; in __gfs2_glocks_open()
2071 gi->last_pos = -1; in __gfs2_glocks_open()
2072 gi->gl = NULL; in __gfs2_glocks_open()
2073 rhashtable_walk_enter(&gl_hash_table, &gi->hti); in __gfs2_glocks_open()
2086 struct gfs2_glock_iter *gi = seq->private; in gfs2_glocks_release() local
2088 if (gi->gl) in gfs2_glocks_release()
2089 gfs2_glock_put(gi->gl); in gfs2_glocks_release()
2090 rhashtable_walk_exit(&gi->hti); in gfs2_glocks_release()