Lines Matching refs:num_gh
1128 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument
1134 for (x = 0; x < num_gh; x++) in nq_m_sync()
1137 sort(p, num_gh, sizeof(struct gfs2_holder *), glock_compare, NULL); in nq_m_sync()
1139 for (x = 0; x < num_gh; x++) { in nq_m_sync()
1163 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m() argument
1169 switch(num_gh) { in gfs2_glock_nq_m()
1176 if (num_gh <= 4) in gfs2_glock_nq_m()
1178 pph = kmalloc(num_gh * sizeof(struct gfs2_holder *), GFP_NOFS); in gfs2_glock_nq_m()
1183 error = nq_m_sync(num_gh, ghs, pph); in gfs2_glock_nq_m()
1198 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m() argument
1200 while (num_gh--) in gfs2_glock_dq_m()
1201 gfs2_glock_dq(&ghs[num_gh]); in gfs2_glock_dq_m()