Lines Matching refs:gi
1778 struct gfs2_glock_iter *gi = seq->private; in gfs2_sbstats_seq_show() local
1779 struct gfs2_sbd *sdp = gi->sdp; in gfs2_sbstats_seq_show()
1780 unsigned index = gi->hash >> 3; in gfs2_sbstats_seq_show()
1781 unsigned subindex = gi->hash & 0x07; in gfs2_sbstats_seq_show()
1847 static int gfs2_glock_iter_next(struct gfs2_glock_iter *gi) in gfs2_glock_iter_next() argument
1852 gl = gi->gl; in gfs2_glock_iter_next()
1854 gi->gl = glock_hash_next(gl); in gfs2_glock_iter_next()
1855 gi->nhash++; in gfs2_glock_iter_next()
1857 if (gi->hash >= GFS2_GL_HASH_SIZE) { in gfs2_glock_iter_next()
1861 gi->gl = glock_hash_chain(gi->hash); in gfs2_glock_iter_next()
1862 gi->nhash = 0; in gfs2_glock_iter_next()
1864 while (gi->gl == NULL) { in gfs2_glock_iter_next()
1865 gi->hash++; in gfs2_glock_iter_next()
1866 if (gi->hash >= GFS2_GL_HASH_SIZE) { in gfs2_glock_iter_next()
1870 gi->gl = glock_hash_chain(gi->hash); in gfs2_glock_iter_next()
1871 gi->nhash = 0; in gfs2_glock_iter_next()
1874 } while (gi->sdp != gi->gl->gl_sbd || in gfs2_glock_iter_next()
1875 __lockref_is_dead(&gi->gl->gl_lockref)); in gfs2_glock_iter_next()
1882 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_start() local
1885 if (gi->last_pos <= *pos) in gfs2_glock_seq_start()
1886 n = gi->nhash + (*pos - gi->last_pos); in gfs2_glock_seq_start()
1888 gi->hash = 0; in gfs2_glock_seq_start()
1890 gi->nhash = 0; in gfs2_glock_seq_start()
1894 if (gfs2_glock_iter_next(gi)) in gfs2_glock_seq_start()
1898 gi->last_pos = *pos; in gfs2_glock_seq_start()
1899 return gi->gl; in gfs2_glock_seq_start()
1905 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_next() local
1908 gi->last_pos = *pos; in gfs2_glock_seq_next()
1909 if (gfs2_glock_iter_next(gi)) in gfs2_glock_seq_next()
1912 return gi->gl; in gfs2_glock_seq_next()
1917 struct gfs2_glock_iter *gi = seq->private; in gfs2_glock_seq_stop() local
1919 if (gi->gl) in gfs2_glock_seq_stop()
1921 gi->gl = NULL; in gfs2_glock_seq_stop()
1932 struct gfs2_glock_iter *gi = seq->private; in gfs2_sbstats_seq_start() local
1934 gi->hash = *pos; in gfs2_sbstats_seq_start()
1944 struct gfs2_glock_iter *gi = seq->private; in gfs2_sbstats_seq_next() local
1946 gi->hash++; in gfs2_sbstats_seq_next()
1947 if (gi->hash >= GFS2_NR_SBSTATS) { in gfs2_sbstats_seq_next()
1988 struct gfs2_glock_iter *gi = seq->private; in gfs2_glocks_open() local
1989 gi->sdp = inode->i_private; in gfs2_glocks_open()
2003 struct gfs2_glock_iter *gi = seq->private; in gfs2_glstats_open() local
2004 gi->sdp = inode->i_private; in gfs2_glstats_open()
2018 struct gfs2_glock_iter *gi = seq->private; in gfs2_sbstats_open() local
2019 gi->sdp = inode->i_private; in gfs2_sbstats_open()