/fs/gfs2/ |
D | glock.h | 150 struct gfs2_holder *gh; in gfs2_glock_is_locked_by_me() local 156 list_for_each_entry(gh, &gl->gl_holders, gh_list) { in gfs2_glock_is_locked_by_me() 157 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me() 159 if (test_bit(HIF_MAY_DEMOTE, &gh->gh_iflags)) in gfs2_glock_is_locked_by_me() 161 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me() 164 gh = NULL; in gfs2_glock_is_locked_by_me() 168 return gh; in gfs2_glock_is_locked_by_me() 204 u16 flags, struct gfs2_holder *gh, 207 u16 flags, struct gfs2_holder *gh) { in gfs2_holder_init() argument 208 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_); in gfs2_holder_init() [all …]
|
D | glock.c | 63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target); 64 static void __gfs2_glock_dq(struct gfs2_holder *gh); 333 struct gfs2_holder *gh) in may_grant() argument 347 return gh->gh_state == LM_ST_EXCLUSIVE && in may_grant() 349 (gh->gh_flags & LM_FLAG_NODE_SCOPE); in may_grant() 353 return gh->gh_state == current_gh->gh_state; in may_grant() 360 if (gl->gl_state == gh->gh_state) in may_grant() 362 if (gh->gh_flags & GL_EXACT) in may_grant() 365 return gh->gh_state == LM_ST_SHARED || in may_grant() 366 gh->gh_state == LM_ST_DEFERRED; in may_grant() [all …]
|
D | file.c | 161 struct gfs2_holder gh; in gfs2_fileattr_get() local 168 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_fileattr_get() 169 error = gfs2_glock_nq(&gh); in gfs2_fileattr_get() 177 gfs2_glock_dq(&gh); in gfs2_fileattr_get() 179 gfs2_holder_uninit(&gh); in gfs2_fileattr_get() 223 struct gfs2_holder gh; in do_gfs2_set_flags() local 227 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in do_gfs2_set_flags() 272 gfs2_glock_dq_uninit(&gh); in do_gfs2_set_flags() 424 struct gfs2_holder gh; in gfs2_page_mkwrite() local 431 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_page_mkwrite() [all …]
|
D | super.c | 187 struct gfs2_holder gh; in gfs2_statfs_init() local 191 &gh); in gfs2_statfs_init() 216 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_init() 276 struct gfs2_holder gh; in gfs2_statfs_sync() local 281 &gh); in gfs2_statfs_sync() 310 gfs2_glock_dq_uninit(&gh); in gfs2_statfs_sync() 317 struct gfs2_holder gh; member 344 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean() 378 gfs2_glock_dq_uninit(&lfcc->gh); in gfs2_lock_fs_check_clean() 478 struct gfs2_holder gh; in gfs2_dirty_inode() local [all …]
|
D | acl.c | 63 struct gfs2_holder gh; in gfs2_get_acl() local 72 LM_FLAG_ANY, &gh); in gfs2_get_acl() 79 gfs2_glock_dq_uninit(&gh); in gfs2_get_acl() 116 struct gfs2_holder gh; in gfs2_set_acl() local 129 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_set_acl() 150 gfs2_glock_dq_uninit(&gh); in gfs2_set_acl()
|
D | trace_gfs2.h | 200 TP_PROTO(const struct gfs2_holder *gh), 202 TP_ARGS(gh), 212 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev; 213 __entry->glnum = gh->gh_gl->gl_name.ln_number; 214 __entry->gltype = gh->gh_gl->gl_name.ln_type; 215 __entry->state = glock_trace_state(gh->gh_state); 227 TP_PROTO(const struct gfs2_holder *gh, int queue), 229 TP_ARGS(gh, queue), 240 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev; 241 __entry->glnum = gh->gh_gl->gl_name.ln_number; [all …]
|
D | inode.c | 866 struct gfs2_holder gh; in __gfs2_lookup() local 879 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in __gfs2_lookup() 887 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup() 893 gfs2_glock_dq_uninit(&gh); in __gfs2_lookup() 2044 struct gfs2_holder gh; in gfs2_getattr() local 2048 gfs2_holder_mark_uninitialized(&gh); in gfs2_getattr() 2050 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_getattr() 2069 if (gfs2_holder_initialized(&gh)) in gfs2_getattr() 2070 gfs2_glock_dq_uninit(&gh); in gfs2_getattr() 2079 struct gfs2_holder gh; in gfs2_fiemap() local [all …]
|
D | xattr.c | 608 struct gfs2_holder gh; in gfs2_xattr_get() local 614 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_xattr_get() 618 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_get() 621 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_get() 622 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_get() 1234 struct gfs2_holder gh; in gfs2_xattr_set() local 1244 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_xattr_set() 1252 gfs2_holder_mark_uninitialized(&gh); in gfs2_xattr_set() 1255 if (gfs2_holder_initialized(&gh)) in gfs2_xattr_set() 1256 gfs2_glock_dq_uninit(&gh); in gfs2_xattr_set() [all …]
|
D | export.c | 95 struct gfs2_holder gh; in gfs2_get_name() local 112 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_name() 118 gfs2_glock_dq_uninit(&gh); in gfs2_get_name()
|
D | glops.c | 503 static int inode_go_held(struct gfs2_holder *gh) in inode_go_held() argument 505 struct gfs2_glock *gl = gh->gh_gl; in inode_go_held() 512 if (gh->gh_state != LM_ST_DEFERRED) in inode_go_held() 517 (gh->gh_state == LM_ST_EXCLUSIVE)) in inode_go_held()
|
D | rgrp.c | 1262 static int update_rgrp_lvb(struct gfs2_rgrpd *rgd, struct gfs2_holder *gh) in update_rgrp_lvb() argument 1266 if (!test_bit(GLF_INSTANTIATE_NEEDED, &gh->gh_gl->gl_flags)) in update_rgrp_lvb() 1270 return gfs2_instantiate(gh); in update_rgrp_lvb() 1392 struct gfs2_holder gh; in gfs2_fitrim() local 1435 LM_FLAG_NODE_SCOPE, &gh); in gfs2_fitrim() 1449 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim() 1467 gfs2_glock_dq_uninit(&gh); in gfs2_fitrim()
|
D | incore.h | 223 int (*go_held)(struct gfs2_holder *gh);
|