• Home
  • Raw
  • Download

Lines Matching refs:gi

2034 static void gfs2_glock_iter_next(struct gfs2_glock_iter *gi, loff_t n)  in gfs2_glock_iter_next()  argument
2036 struct gfs2_glock *gl = gi->gl; in gfs2_glock_iter_next()
2045 gl = rhashtable_walk_next(&gi->hti); in gfs2_glock_iter_next()
2054 if (gl->gl_name.ln_sbd != gi->sdp) in gfs2_glock_iter_next()
2066 gi->gl = gl; in gfs2_glock_iter_next()
2072 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_start() local
2079 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
2080 rhashtable_walk_exit(&gi->hti); in gfs2_glock_seq_start()
2081 rhashtable_walk_enter(&gl_hash_table, &gi->hti); in gfs2_glock_seq_start()
2084 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
2087 rhashtable_walk_start(&gi->hti); in gfs2_glock_seq_start()
2089 gfs2_glock_iter_next(gi, n); in gfs2_glock_seq_start()
2090 gi->last_pos = *pos; in gfs2_glock_seq_start()
2091 return gi->gl; in gfs2_glock_seq_start()
2097 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_next() local
2100 gi->last_pos = *pos; in gfs2_glock_seq_next()
2101 gfs2_glock_iter_next(gi, 1); in gfs2_glock_seq_next()
2102 return gi->gl; in gfs2_glock_seq_next()
2108 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_stop() local
2110 rhashtable_walk_stop(&gi->hti); in gfs2_glock_seq_stop()
2170 struct gfs2_glock_iter *gi = seq->private; in __gfs2_glocks_open() local
2172 gi->sdp = inode->i_private; in __gfs2_glocks_open()
2180 gi->last_pos = -1; in __gfs2_glocks_open()
2181 gi->gl = NULL; in __gfs2_glocks_open()
2182 rhashtable_walk_enter(&gl_hash_table, &gi->hti); in __gfs2_glocks_open()
2195 struct gfs2_glock_iter *gi = seq->private; in gfs2_glocks_release() local
2197 if (gi->gl) in gfs2_glocks_release()
2198 gfs2_glock_put(gi->gl); in gfs2_glocks_release()
2199 rhashtable_walk_exit(&gi->hti); in gfs2_glocks_release()