Lines Matching refs:gi

2327 static void gfs2_glock_iter_next(struct gfs2_glock_iter *gi, loff_t n)  in gfs2_glock_iter_next()  argument
2329 struct gfs2_glock *gl = gi->gl; in gfs2_glock_iter_next()
2338 gl = rhashtable_walk_next(&gi->hti); in gfs2_glock_iter_next()
2347 if (gl->gl_name.ln_sbd != gi->sdp) in gfs2_glock_iter_next()
2359 gi->gl = gl; in gfs2_glock_iter_next()
2365 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_start() local
2372 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
2373 rhashtable_walk_exit(&gi->hti); in gfs2_glock_seq_start()
2374 rhashtable_walk_enter(&gl_hash_table, &gi->hti); in gfs2_glock_seq_start()
2377 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
2380 rhashtable_walk_start(&gi->hti); in gfs2_glock_seq_start()
2382 gfs2_glock_iter_next(gi, n); in gfs2_glock_seq_start()
2383 gi->last_pos = *pos; in gfs2_glock_seq_start()
2384 return gi->gl; in gfs2_glock_seq_start()
2390 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_next() local
2393 gi->last_pos = *pos; in gfs2_glock_seq_next()
2394 gfs2_glock_iter_next(gi, 1); in gfs2_glock_seq_next()
2395 return gi->gl; in gfs2_glock_seq_next()
2401 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_stop() local
2403 rhashtable_walk_stop(&gi->hti); in gfs2_glock_seq_stop()
2463 struct gfs2_glock_iter *gi = seq->private; in __gfs2_glocks_open() local
2465 gi->sdp = inode->i_private; in __gfs2_glocks_open()
2473 gi->last_pos = -1; in __gfs2_glocks_open()
2474 gi->gl = NULL; in __gfs2_glocks_open()
2475 rhashtable_walk_enter(&gl_hash_table, &gi->hti); in __gfs2_glocks_open()
2488 struct gfs2_glock_iter *gi = seq->private; in gfs2_glocks_release() local
2490 if (gi->gl) in gfs2_glocks_release()
2491 gfs2_glock_put(gi->gl); in gfs2_glocks_release()
2492 rhashtable_walk_exit(&gi->hti); in gfs2_glocks_release()