Lines Matching defs:ghs
1342 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs)
1347 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags))
1355 * @ghs: the glock holder array
1362 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs)
1364 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd;
1374 timeout += ghs[i].gh_gl->gl_hold_time << 1;
1377 !glocks_pending(num_gh, ghs), timeout)) {
1383 struct gfs2_holder *gh = &ghs[i];
1398 struct gfs2_holder *gh = &ghs[i];
1766 * @ghs: an array of struct gfs2_holder structures
1773 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs,
1780 p[x] = &ghs[x];
1799 * @ghs: an array of struct gfs2_holder structures
1805 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1815 return gfs2_glock_nq(ghs);
1825 error = nq_m_sync(num_gh, ghs, pph);
1836 * @ghs: an array of struct gfs2_holder structures
1840 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1843 gfs2_glock_dq(&ghs[num_gh]);