Lines Matching refs:gi
2324 static void gfs2_glock_iter_next(struct gfs2_glock_iter *gi, loff_t n)
2326 struct gfs2_glock *gl = gi->gl;
2335 gl = rhashtable_walk_next(&gi->hti);
2344 if (gl->gl_name.ln_sbd != gi->sdp)
2356 gi->gl = gl;
2362 struct gfs2_glock_iter *gi = seq->private;
2369 if (*pos < gi->last_pos) {
2370 rhashtable_walk_exit(&gi->hti);
2371 rhashtable_walk_enter(&gl_hash_table, &gi->hti);
2374 n = *pos - gi->last_pos;
2377 rhashtable_walk_start(&gi->hti);
2379 gfs2_glock_iter_next(gi, n);
2380 gi->last_pos = *pos;
2381 return gi->gl;
2387 struct gfs2_glock_iter *gi = seq->private;
2390 gi->last_pos = *pos;
2391 gfs2_glock_iter_next(gi, 1);
2392 return gi->gl;
2398 struct gfs2_glock_iter *gi = seq->private;
2400 rhashtable_walk_stop(&gi->hti);
2460 struct gfs2_glock_iter *gi = seq->private;
2462 gi->sdp = inode->i_private;
2470 gi->last_pos = -1;
2471 gi->gl = NULL;
2472 rhashtable_walk_enter(&gl_hash_table, &gi->hti);
2485 struct gfs2_glock_iter *gi = seq->private;
2487 if (gi->gl)
2488 gfs2_glock_put(gi->gl);
2489 rhashtable_walk_exit(&gi->hti);