Lines Matching defs:ghs
1192 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs)
1197 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags))
1205 * @ghs: the glock holder array
1212 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs)
1214 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd;
1225 timeout += ghs[i].gh_gl->gl_hold_time << 1;
1229 !glocks_pending(num_gh, ghs), timeout))
1249 if (!gfs2_holder_queued(&ghs[i]))
1252 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) {
1257 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) {
1259 gfs2_glock_dq(&ghs[i]);
1261 gfs2_glock_update_hold_time(ghs[i].gh_gl,
1265 ret = ghs[i].gh_error;
1583 * @ghs: an array of struct gfs2_holder structures
1589 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs,
1596 p[x] = &ghs[x];
1617 * @ghs: an array of struct gfs2_holder structures
1624 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1634 ghs->gh_flags &= ~(LM_FLAG_TRY | GL_ASYNC);
1635 return gfs2_glock_nq(ghs);
1645 error = nq_m_sync(num_gh, ghs, pph);
1656 * @ghs: an array of struct gfs2_holder structures
1660 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1663 gfs2_glock_dq(&ghs[num_gh]);