ghs 967 fs/gfs2/glock.c static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) ghs 972 fs/gfs2/glock.c if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) ghs 987 fs/gfs2/glock.c int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) ghs 989 fs/gfs2/glock.c struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; ghs 1000 fs/gfs2/glock.c timeout += ghs[i].gh_gl->gl_hold_time << 1; ghs 1004 fs/gfs2/glock.c !glocks_pending(num_gh, ghs), timeout)) ghs 1024 fs/gfs2/glock.c if (!gfs2_holder_queued(&ghs[i])) ghs 1027 fs/gfs2/glock.c if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { ghs 1032 fs/gfs2/glock.c if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { ghs 1034 fs/gfs2/glock.c gfs2_glock_dq(&ghs[i]); ghs 1036 fs/gfs2/glock.c gfs2_glock_update_hold_time(ghs[i].gh_gl, ghs 1040 fs/gfs2/glock.c ret = ghs[i].gh_error; ghs 1355 fs/gfs2/glock.c static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, ghs 1362 fs/gfs2/glock.c p[x] = &ghs[x]; ghs 1390 fs/gfs2/glock.c int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) ghs 1400 fs/gfs2/glock.c ghs->gh_flags &= ~(LM_FLAG_TRY | GL_ASYNC); ghs 1401 fs/gfs2/glock.c return gfs2_glock_nq(ghs); ghs 1411 fs/gfs2/glock.c error = nq_m_sync(num_gh, ghs, pph); ghs 1426 fs/gfs2/glock.c void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) ghs 1429 fs/gfs2/glock.c gfs2_glock_dq(&ghs[num_gh]); ghs 193 fs/gfs2/glock.h extern int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs); ghs 201 fs/gfs2/glock.h extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); ghs 202 fs/gfs2/glock.h extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); ghs 584 fs/gfs2/inode.c struct gfs2_holder ghs[2]; ghs 605 fs/gfs2/inode.c error = gfs2_glock_nq_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); ghs 608 fs/gfs2/inode.c gfs2_holder_mark_uninitialized(ghs + 1); ghs 630 fs/gfs2/inode.c gfs2_glock_dq_uninit(ghs); ghs 709 fs/gfs2/inode.c error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, ghs + 1); ghs 772 fs/gfs2/inode.c gfs2_glock_dq_uninit(ghs); ghs 773 fs/gfs2/inode.c gfs2_glock_dq_uninit(ghs + 1); ghs 795 fs/gfs2/inode.c gfs2_glock_dq_uninit(ghs); ghs 804 fs/gfs2/inode.c if (gfs2_holder_initialized(ghs + 1)) ghs 805 fs/gfs2/inode.c gfs2_glock_dq_uninit(ghs + 1); ghs 900 fs/gfs2/inode.c struct gfs2_holder ghs[2]; ghs 912 fs/gfs2/inode.c gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); ghs 913 fs/gfs2/inode.c gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1); ghs 915 fs/gfs2/inode.c error = gfs2_glock_nq(ghs); /* parent */ ghs 919 fs/gfs2/inode.c error = gfs2_glock_nq(ghs + 1); /* child */ ghs 1007 fs/gfs2/inode.c gfs2_glock_dq(ghs + 1); ghs 1009 fs/gfs2/inode.c gfs2_glock_dq(ghs); ghs 1011 fs/gfs2/inode.c gfs2_holder_uninit(ghs); ghs 1012 fs/gfs2/inode.c gfs2_holder_uninit(ghs + 1); ghs 1103 fs/gfs2/inode.c struct gfs2_holder ghs[3]; ghs 1113 fs/gfs2/inode.c gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); ghs 1114 fs/gfs2/inode.c gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1); ghs 1120 fs/gfs2/inode.c gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); ghs 1123 fs/gfs2/inode.c error = gfs2_glock_nq(ghs); /* parent */ ghs 1127 fs/gfs2/inode.c error = gfs2_glock_nq(ghs + 1); /* child */ ghs 1141 fs/gfs2/inode.c error = gfs2_glock_nq(ghs + 2); /* rgrp */ ghs 1157 fs/gfs2/inode.c gfs2_glock_dq(ghs + 2); ghs 1159 fs/gfs2/inode.c gfs2_glock_dq(ghs + 1); ghs 1161 fs/gfs2/inode.c gfs2_glock_dq(ghs); ghs 1163 fs/gfs2/inode.c gfs2_holder_uninit(ghs + 2); ghs 1165 fs/gfs2/inode.c gfs2_holder_uninit(ghs + 1); ghs 1166 fs/gfs2/inode.c gfs2_holder_uninit(ghs); ghs 1351 fs/gfs2/inode.c struct gfs2_holder ghs[4], r_gh, rd_gh; ghs 1391 fs/gfs2/inode.c gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); ghs 1394 fs/gfs2/inode.c ghs + num_gh); ghs 1397 fs/gfs2/inode.c gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); ghs 1402 fs/gfs2/inode.c ghs + num_gh); ghs 1407 fs/gfs2/inode.c error = gfs2_glock_nq(ghs + x); ghs 1411 fs/gfs2/inode.c error = gfs2_glock_async_wait(num_gh, ghs); ghs 1563 fs/gfs2/inode.c if (gfs2_holder_queued(ghs + x)) ghs 1564 fs/gfs2/inode.c gfs2_glock_dq(ghs + x); ghs 1565 fs/gfs2/inode.c gfs2_holder_uninit(ghs + x); ghs 1594 fs/gfs2/inode.c struct gfs2_holder ghs[4], r_gh; ghs 1628 fs/gfs2/inode.c gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); ghs 1631 fs/gfs2/inode.c ghs + num_gh); ghs 1634 fs/gfs2/inode.c gfs2_holder_init(oip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); ghs 1637 fs/gfs2/inode.c gfs2_holder_init(nip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); ghs 1641 fs/gfs2/inode.c error = gfs2_glock_nq(ghs + x); ghs 1646 fs/gfs2/inode.c error = gfs2_glock_async_wait(num_gh, ghs); ghs 1710 fs/gfs2/inode.c if (gfs2_holder_queued(ghs + x)) ghs 1711 fs/gfs2/inode.c gfs2_glock_dq(ghs + x); ghs 1712 fs/gfs2/inode.c gfs2_holder_uninit(ghs + x); ghs 871 fs/gfs2/quota.c struct gfs2_holder *ghs, i_gh; ghs 886 fs/gfs2/quota.c ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); ghs 887 fs/gfs2/quota.c if (!ghs) ghs 894 fs/gfs2/quota.c GL_NOCACHE, &ghs[qx]); ghs 955 fs/gfs2/quota.c gfs2_glock_dq_uninit(&ghs[qx]); ghs 957 fs/gfs2/quota.c kfree(ghs);