Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/fs/gfs2/ |
H A D | inode.c | 1405 struct gfs2_holder ghs[4], r_gh, rd_gh; in gfs2_rename() local 1445 gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); in gfs2_rename() 1448 ghs + num_gh); in gfs2_rename() 1451 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); in gfs2_rename() 1456 ghs + num_gh); in gfs2_rename() 1461 error = gfs2_glock_nq(ghs + x); in gfs2_rename() 1465 error = gfs2_glock_async_wait(num_gh, ghs); in gfs2_rename() 1620 if (gfs2_holder_queued(ghs + x)) in gfs2_rename() 1621 gfs2_glock_dq(ghs + x); in gfs2_rename() 1622 gfs2_holder_uninit(ghs + x); in gfs2_rename() [all …]
|
H A D | glock.h | 207 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs); 215 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); 216 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
|
H A D | glock.c | 1382 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument 1387 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending() 1402 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument 1404 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait() 1414 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait() 1417 !glocks_pending(num_gh, ghs), timeout)) { in gfs2_glock_async_wait() 1423 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait() 1438 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait() 1813 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument 1820 p[x] = &ghs[x]; in nq_m_sync() [all …]
|
H A D | quota.c | 894 struct gfs2_holder *ghs, i_gh; in do_sync() local 905 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync() 906 if (!ghs) in do_sync() 913 GL_NOCACHE, &ghs[qx]); in do_sync() 973 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync() 975 kfree(ghs); in do_sync()
|