Home
last modified time | relevance | path

Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/fs/gfs2/
Dinode.c1404 struct gfs2_holder ghs[4], r_gh, rd_gh; in gfs2_rename() local
1444 gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); in gfs2_rename()
1447 ghs + num_gh); in gfs2_rename()
1450 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); in gfs2_rename()
1455 ghs + num_gh); in gfs2_rename()
1460 error = gfs2_glock_nq(ghs + x); in gfs2_rename()
1464 error = gfs2_glock_async_wait(num_gh, ghs); in gfs2_rename()
1619 if (gfs2_holder_queued(ghs + x)) in gfs2_rename()
1620 gfs2_glock_dq(ghs + x); in gfs2_rename()
1621 gfs2_holder_uninit(ghs + x); in gfs2_rename()
[all …]
Dglock.h207 extern int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs);
215 extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs);
216 extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
Dglock.c1342 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument
1347 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending()
1362 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument
1364 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait()
1374 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait()
1377 !glocks_pending(num_gh, ghs), timeout)) { in gfs2_glock_async_wait()
1383 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait()
1398 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait()
1773 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument
1780 p[x] = &ghs[x]; in nq_m_sync()
[all …]
Dquota.c903 struct gfs2_holder *ghs, i_gh; in do_sync() local
914 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync()
915 if (!ghs) in do_sync()
922 GL_NOCACHE, &ghs[qx]); in do_sync()
982 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync()
984 kfree(ghs); in do_sync()