Lines Matching refs:gi
2568 static void gfs2_glock_iter_next(struct gfs2_glock_iter *gi, loff_t n)
2570 struct gfs2_glock *gl = gi->gl;
2578 gl = rhashtable_walk_next(&gi->hti);
2587 if (gl->gl_name.ln_sbd != gi->sdp)
2599 gi->gl = gl;
2605 struct gfs2_glock_iter *gi = seq->private;
2612 if (*pos < gi->last_pos) {
2613 rhashtable_walk_exit(&gi->hti);
2614 rhashtable_walk_enter(&gl_hash_table, &gi->hti);
2617 n = *pos - gi->last_pos;
2620 rhashtable_walk_start(&gi->hti);
2622 gfs2_glock_iter_next(gi, n);
2623 gi->last_pos = *pos;
2624 return gi->gl;
2630 struct gfs2_glock_iter *gi = seq->private;
2633 gi->last_pos = *pos;
2634 gfs2_glock_iter_next(gi, 1);
2635 return gi->gl;
2641 struct gfs2_glock_iter *gi = seq->private;
2643 rhashtable_walk_stop(&gi->hti);
2703 struct gfs2_glock_iter *gi = seq->private;
2705 gi->sdp = inode->i_private;
2713 gi->last_pos = -1;
2714 gi->gl = NULL;
2715 rhashtable_walk_enter(&gl_hash_table, &gi->hti);
2728 struct gfs2_glock_iter *gi = seq->private;
2730 if (gi->gl)
2731 gfs2_glock_put(gi->gl);
2732 rhashtable_walk_exit(&gi->hti);