Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance
/fs/gfs2/ |
D | inode.c | 608 struct gfs2_holder ghs[2]; in gfs2_create_inode() local 629 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_create_inode() 632 gfs2_holder_mark_uninitialized(ghs + 1); in gfs2_create_inode() 654 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 738 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, ghs + 1); in gfs2_create_inode() 795 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 797 gfs2_glock_dq_uninit(ghs + 1); in gfs2_create_inode() 821 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 830 if (gfs2_holder_initialized(ghs + 1)) in gfs2_create_inode() 831 gfs2_glock_dq_uninit(ghs + 1); in gfs2_create_inode() [all …]
|
D | glock.c | 1285 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument 1290 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending() 1305 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument 1307 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait() 1318 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait() 1322 !glocks_pending(num_gh, ghs), timeout)) in gfs2_glock_async_wait() 1342 if (!gfs2_holder_queued(&ghs[i])) in gfs2_glock_async_wait() 1345 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait() 1350 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait() 1352 gfs2_glock_dq(&ghs[i]); in gfs2_glock_async_wait() [all …]
|
D | glock.h | 201 extern int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs); 209 extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); 210 extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
|
D | quota.c | 897 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() 922 GL_NOCACHE, &ghs[qx]); in do_sync() 983 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync() 985 kfree(ghs); in do_sync()
|