Lines Matching defs:num_gh
1342 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs)
1346 for (i = 0; i < num_gh; i++)
1354 * @num_gh: the number of holders in the array
1362 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs)
1373 for (i = 0; i < num_gh; i++)
1377 !glocks_pending(num_gh, ghs), timeout)) {
1382 for (i = 0; i < num_gh; i++) {
1397 for (i = 0; i < num_gh; i++) {
1765 * @num_gh: the number of structures
1773 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs,
1779 for (x = 0; x < num_gh; x++)
1782 sort(p, num_gh, sizeof(struct gfs2_holder *), glock_compare, NULL);
1784 for (x = 0; x < num_gh; x++) {
1798 * @num_gh: the number of structures
1805 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1811 switch(num_gh) {
1817 if (num_gh <= 4)
1819 pph = kmalloc_array(num_gh, sizeof(struct gfs2_holder *),
1825 error = nq_m_sync(num_gh, ghs, pph);
1835 * @num_gh: the number of structures
1840 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs)
1842 while (num_gh--)
1843 gfs2_glock_dq(&ghs[num_gh]);