Searched refs:ghs (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/fs/gfs2/ |
D | inode.c | 599 struct gfs2_holder ghs[2]; in gfs2_create_inode() local 620 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_create_inode() 623 gfs2_holder_mark_uninitialized(ghs + 1); in gfs2_create_inode() 645 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() 788 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 790 gfs2_glock_dq_uninit(ghs + 1); in gfs2_create_inode() 815 gfs2_glock_dq_uninit(ghs); in gfs2_create_inode() 827 if (gfs2_holder_initialized(ghs + 1)) in gfs2_create_inode() 828 gfs2_glock_dq_uninit(ghs + 1); in gfs2_create_inode() [all …]
|
D | glock.h | 219 extern int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs); 227 extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); 228 extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs);
|
D | glock.c | 1351 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument 1356 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending() 1371 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument 1373 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait() 1383 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait() 1386 !glocks_pending(num_gh, ghs), timeout)) { in gfs2_glock_async_wait() 1392 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait() 1407 struct gfs2_holder *gh = &ghs[i]; in gfs2_glock_async_wait() 1804 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument 1811 p[x] = &ghs[x]; in nq_m_sync() [all …]
|
D | quota.c | 886 struct gfs2_holder *ghs, i_gh; in do_sync() local 901 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync() 902 if (!ghs) { in do_sync() 911 GL_NOCACHE, &ghs[qx]); in do_sync() 972 gfs2_glock_dq_uninit(&ghs[qx]); in do_sync() 974 kfree(ghs); in do_sync()
|