Lines Matching refs:gl_flags
172 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
182 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
393 clear_bit(GLF_QUEUED, &gl->gl_flags); in state_change()
406 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
408 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
431 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
437 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
474 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
491 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
519 set_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
523 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
527 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
531 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in do_xmote()
533 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
583 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
586 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
588 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
594 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
598 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
615 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
623 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
656 if (test_and_clear_bit(GLF_REPLY_PENDING, &gl->gl_flags)) { in glock_work_func()
661 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
671 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
672 set_bit(GLF_DEMOTE, &gl->gl_flags); in glock_work_func()
743 gl->gl_flags = 0; in gfs2_glock_get()
884 set_bit(bit, &gl->gl_flags); in handle_callback()
941 if (test_bit(GLF_LOCK, &gl->gl_flags)) in add_to_queue()
943 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
963 set_bit(GLF_QUEUED, &gl->gl_flags); in add_to_queue()
1015 if (test_bit(GLF_LRU, &gl->gl_flags)) in gfs2_glock_nq()
1021 test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { in gfs2_glock_nq()
1022 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_nq()
1068 GLOCK_BUG_ON(gl, test_and_set_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_glock_dq()
1072 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_dq()
1075 !test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1076 !test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_glock_dq()
1079 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl)) in gfs2_glock_dq()
1088 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1089 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1101 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1259 if (test_bit(GLF_QUEUED, &gl->gl_flags) && in gfs2_glock_cb()
1263 if (test_bit(GLF_REPLY_PENDING, &gl->gl_flags)) in gfs2_glock_cb()
1322 set_bit(GLF_FROZEN, &gl->gl_flags); in gfs2_glock_complete()
1329 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_complete()
1382 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_dispose_glock_lru()
1386 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1390 WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_dispose_glock_lru()
1419 if (!test_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_scan_glock_lru()
1497 if (!test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) in thaw_glock()
1499 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in thaw_glock()
1574 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_finish_truncate()
1650 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
1711 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()