Lines Matching refs:num_gh
1342 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument
1346 for (i = 0; i < num_gh; i++) in glocks_pending()
1362 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument
1373 for (i = 0; i < num_gh; i++) in gfs2_glock_async_wait()
1377 !glocks_pending(num_gh, ghs), timeout)) { in gfs2_glock_async_wait()
1382 for (i = 0; i < num_gh; i++) { in gfs2_glock_async_wait()
1397 for (i = 0; i < num_gh; i++) { in gfs2_glock_async_wait()
1780 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument
1786 for (x = 0; x < num_gh; x++) in nq_m_sync()
1789 sort(p, num_gh, sizeof(struct gfs2_holder *), glock_compare, NULL); in nq_m_sync()
1791 for (x = 0; x < num_gh; x++) { in nq_m_sync()
1812 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m() argument
1818 switch(num_gh) { in gfs2_glock_nq_m()
1824 if (num_gh <= 4) in gfs2_glock_nq_m()
1826 pph = kmalloc_array(num_gh, sizeof(struct gfs2_holder *), in gfs2_glock_nq_m()
1832 error = nq_m_sync(num_gh, ghs, pph); in gfs2_glock_nq_m()
1847 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m() argument
1849 while (num_gh--) in gfs2_glock_dq_m()
1850 gfs2_glock_dq(&ghs[num_gh]); in gfs2_glock_dq_m()