Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance
/fs/gfs2/ |
D | inode.c | 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() [all …]
|
D | glock.c | 968 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument 973 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending() 988 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument 990 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait() 1001 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait() 1005 !glocks_pending(num_gh, ghs), timeout)) in gfs2_glock_async_wait() 1025 if (!gfs2_holder_queued(&ghs[i])) in gfs2_glock_async_wait() 1028 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait() 1033 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait() 1035 gfs2_glock_dq(&ghs[i]); in gfs2_glock_async_wait() [all …]
|
D | glock.h | 193 extern int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs); 201 extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); 202 extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
|
D | quota.c | 882 struct gfs2_holder *ghs, i_gh; in do_sync() local 897 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync() 898 if (!ghs) in do_sync() 905 GL_NOCACHE, &ghs[qx]); in do_sync() 966 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync() 968 kfree(ghs); in do_sync()
|