Home
last modified time | relevance | path

Searched refs:gl_state (Results 1 – 8 of 8) sorted by relevance

/fs/gfs2/
Dglock.h162 return gl->gl_state == LM_ST_EXCLUSIVE; in gfs2_glock_is_held_excl()
167 return gl->gl_state == LM_ST_DEFERRED; in gfs2_glock_is_held_dfrd()
172 return gl->gl_state == LM_ST_SHARED; in gfs2_glock_is_held_shrd()
Dglock.c175 if (gl->gl_state == LM_ST_UNLOCKED) in demote_ok()
291 if (gl->gl_state == gh->gh_state) in may_grant()
295 if (gl->gl_state == LM_ST_EXCLUSIVE) { in may_grant()
301 if (gl->gl_state != LM_ST_UNLOCKED && (gh->gh_flags & LM_FLAG_ANY)) in may_grant()
418 held1 = (gl->gl_state != LM_ST_UNLOCKED); in state_change()
435 gl->gl_state = new_state; in state_change()
485 gl->gl_target = gl->gl_state; in finish_xmote()
554 GLOCK_BUG_ON(gl, gl->gl_state == target); in do_xmote()
555 GLOCK_BUG_ON(gl, gl->gl_state == gl->gl_target); in do_xmote()
564 (gl->gl_state == LM_ST_EXCLUSIVE) || in do_xmote()
[all …]
Dglops.c158 GLOCK_BUG_ON(gl, gl->gl_state != LM_ST_EXCLUSIVE); in rgrp_go_sync()
253 GLOCK_BUG_ON(gl, gl->gl_state != LM_ST_EXCLUSIVE); in inode_go_sync()
443 (gl->gl_state == LM_ST_EXCLUSIVE) && in inode_go_lock()
489 if (gl->gl_state == LM_ST_SHARED && in freeze_go_sync()
561 gl->gl_state == LM_ST_SHARED && ip) { in iopen_go_callback()
Dtrace_gfs2.h111 __entry->cur_state = glock_trace_state(gl->gl_state);
147 __entry->cur_state = glock_trace_state(gl->gl_state);
181 __entry->cur_state = glock_trace_state(gl->gl_state);
Dlock_dlm.c120 unsigned ret = gl->gl_state; in gdlm_ast()
301 if (gl->gl_lksb.sb_lvbptr && (gl->gl_state == LM_ST_EXCLUSIVE)) in gdlm_put_lock()
Dincore.h345 unsigned int gl_state:2, /* Current state */ member
Dsuper.c805 } else if (WARN_ON_ONCE(ip->i_gl->gl_state != LM_ST_EXCLUSIVE)) in gfs2_dirty_inode()
Drgrp.c1943 if (gl->gl_state != LM_ST_UNLOCKED && list_empty(&gl->gl_holders) && in fast_to_acquire()