Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/fs/gfs2/ |
D | inode.c | 604 struct gfs2_holder ghs[2]; in gfs2_create_inode() local 625 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_create_inode() 628 gfs2_holder_mark_uninitialized(ghs + 1); in gfs2_create_inode() 650 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 734 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, ghs + 1); in gfs2_create_inode() 793 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 795 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 | 1174 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument 1179 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending() 1194 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument 1196 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait() 1207 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait() 1211 !glocks_pending(num_gh, ghs), timeout)) in gfs2_glock_async_wait() 1231 if (!gfs2_holder_queued(&ghs[i])) in gfs2_glock_async_wait() 1234 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait() 1239 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait() 1241 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 | 878 struct gfs2_holder *ghs, i_gh; in do_sync() local 893 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync() 894 if (!ghs) { in do_sync() 903 GL_NOCACHE, &ghs[qx]); in do_sync() 964 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync() 966 kfree(ghs); in do_sync()
|