Lines Matching refs:gl_flags
140 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
150 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
332 clear_bit(GLF_QUEUED, &gl->gl_flags); in state_change()
345 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
347 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
370 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
376 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
413 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
430 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
458 set_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
462 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
466 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
470 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in do_xmote()
472 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
522 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
525 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
527 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
533 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
537 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
554 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
562 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
595 if (test_and_clear_bit(GLF_REPLY_PENDING, &gl->gl_flags)) { in glock_work_func()
600 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
610 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
611 set_bit(GLF_DEMOTE, &gl->gl_flags); in glock_work_func()
684 gl->gl_flags = 0; in gfs2_glock_get()
836 set_bit(bit, &gl->gl_flags); in handle_callback()
893 if (test_bit(GLF_LOCK, &gl->gl_flags)) in add_to_queue()
895 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
915 set_bit(GLF_QUEUED, &gl->gl_flags); in add_to_queue()
967 if (test_bit(GLF_LRU, &gl->gl_flags)) in gfs2_glock_nq()
973 test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { in gfs2_glock_nq()
974 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_nq()
1020 GLOCK_BUG_ON(gl, test_and_set_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_glock_dq()
1024 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_dq()
1027 !test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1028 !test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_glock_dq()
1031 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl) && in gfs2_glock_dq()
1041 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1042 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1054 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1212 if (test_bit(GLF_QUEUED, &gl->gl_flags) && in gfs2_glock_cb()
1216 if (test_bit(GLF_REPLY_PENDING, &gl->gl_flags)) in gfs2_glock_cb()
1275 set_bit(GLF_FROZEN, &gl->gl_flags); in gfs2_glock_complete()
1282 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_complete()
1335 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_dispose_glock_lru()
1339 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1343 WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_dispose_glock_lru()
1372 if (!test_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_scan_glock_lru()
1445 if (!test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) in thaw_glock()
1447 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in thaw_glock()
1522 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_finish_truncate()
1598 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
1659 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()