Lines Matching refs:ghs
584 struct gfs2_holder ghs[2]; in gfs2_create_inode() local
605 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_create_inode()
608 gfs2_holder_mark_uninitialized(ghs + 1); in gfs2_create_inode()
630 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode()
709 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, ghs + 1); in gfs2_create_inode()
773 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode()
774 gfs2_glock_dq_uninit(ghs + 1); in gfs2_create_inode()
796 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode()
805 if (gfs2_holder_initialized(ghs + 1)) in gfs2_create_inode()
806 gfs2_glock_dq_uninit(ghs + 1); in gfs2_create_inode()
901 struct gfs2_holder ghs[2]; in gfs2_link() local
913 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_link()
914 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1); in gfs2_link()
916 error = gfs2_glock_nq(ghs); /* parent */ in gfs2_link()
920 error = gfs2_glock_nq(ghs + 1); /* child */ in gfs2_link()
1008 gfs2_glock_dq(ghs + 1); in gfs2_link()
1010 gfs2_glock_dq(ghs); in gfs2_link()
1012 gfs2_holder_uninit(ghs); in gfs2_link()
1013 gfs2_holder_uninit(ghs + 1); in gfs2_link()
1104 struct gfs2_holder ghs[3]; in gfs2_unlink() local
1114 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_unlink()
1115 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1); in gfs2_unlink()
1121 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); in gfs2_unlink()
1124 error = gfs2_glock_nq(ghs); /* parent */ in gfs2_unlink()
1128 error = gfs2_glock_nq(ghs + 1); /* child */ in gfs2_unlink()
1142 error = gfs2_glock_nq(ghs + 2); /* rgrp */ in gfs2_unlink()
1158 gfs2_glock_dq(ghs + 2); in gfs2_unlink()
1160 gfs2_glock_dq(ghs + 1); in gfs2_unlink()
1162 gfs2_glock_dq(ghs); in gfs2_unlink()
1164 gfs2_holder_uninit(ghs + 2); in gfs2_unlink()
1166 gfs2_holder_uninit(ghs + 1); in gfs2_unlink()
1167 gfs2_holder_uninit(ghs); in gfs2_unlink()
1352 struct gfs2_holder ghs[4], r_gh, rd_gh; in gfs2_rename() local
1392 gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); in gfs2_rename()
1395 ghs + num_gh); in gfs2_rename()
1398 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); in gfs2_rename()
1403 ghs + num_gh); in gfs2_rename()
1408 error = gfs2_glock_nq(ghs + x); in gfs2_rename()
1412 error = gfs2_glock_async_wait(num_gh, ghs); in gfs2_rename()
1564 if (gfs2_holder_queued(ghs + x)) in gfs2_rename()
1565 gfs2_glock_dq(ghs + x); in gfs2_rename()
1566 gfs2_holder_uninit(ghs + x); in gfs2_rename()
1595 struct gfs2_holder ghs[4], r_gh; in gfs2_exchange() local
1629 gfs2_holder_init(odip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs); in gfs2_exchange()
1632 ghs + num_gh); in gfs2_exchange()
1635 gfs2_holder_init(oip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); in gfs2_exchange()
1638 gfs2_holder_init(nip->i_gl, LM_ST_EXCLUSIVE, GL_ASYNC, ghs + num_gh); in gfs2_exchange()
1642 error = gfs2_glock_nq(ghs + x); in gfs2_exchange()
1647 error = gfs2_glock_async_wait(num_gh, ghs); in gfs2_exchange()
1711 if (gfs2_holder_queued(ghs + x)) in gfs2_exchange()
1712 gfs2_glock_dq(ghs + x); in gfs2_exchange()
1713 gfs2_holder_uninit(ghs + x); in gfs2_exchange()