Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance
/linux/fs/gfs2/ |
H A D | inode.c | 1406 struct gfs2_holder ghs[4], r_gh, rd_gh; in gfs2_rename() local 1446 gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); in gfs2_rename() 1449 ghs + num_gh); in gfs2_rename() 1452 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); in gfs2_rename() 1457 ghs + num_gh); in gfs2_rename() 1462 error = gfs2_glock_nq(ghs + x); in gfs2_rename() 1466 error = gfs2_glock_async_wait(num_gh, ghs); in gfs2_rename() 1621 if (gfs2_holder_queued(ghs + x)) in gfs2_rename() 1622 gfs2_glock_dq(ghs + x); in gfs2_rename() 1623 gfs2_holder_uninit(ghs + x); in gfs2_rename() [all …]
|
H A D | glock.h | 193 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs); 201 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); 202 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
|
H A D | glock.c | 1368 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument 1373 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending() 1388 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument 1390 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait() 1400 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait() 1403 !glocks_pending(num_gh, ghs), timeout)) { in gfs2_glock_async_wait() 1409 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait() 1424 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait() 1812 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument 1819 p[x] = &ghs[x]; in nq_m_sync() [all …]
|
H A D | quota.c | 901 struct gfs2_holder *ghs, i_gh; in do_sync() local 912 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync() 913 if (!ghs) in do_sync() 920 GL_NOCACHE, &ghs[qx]); in do_sync() 980 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync() 982 kfree(ghs); in do_sync()
|