Lines Matching refs:gl_flags
198 if (!test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_add_to_lru()
199 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
209 if (test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_remove_from_lru()
212 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
422 if (!test_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags)) in gfs2_instantiate()
429 if (test_and_set_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags)) { in gfs2_instantiate()
430 wait_on_bit(&gl->gl_flags, GLF_INSTANTIATE_IN_PROG, in gfs2_instantiate()
444 clear_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags); in gfs2_instantiate()
445 clear_and_wake_up_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags); in gfs2_instantiate()
544 set_bit(nr, &gl->gl_flags); in gfs2_set_demote()
552 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
554 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
576 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
585 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
606 &gl->gl_flags)); in finish_xmote()
624 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
625 clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in finish_xmote()
643 if (!test_bit(GLF_CANCELING, &gl->gl_flags)) in finish_xmote()
644 clear_and_wake_up_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
716 set_bit(GLF_MAY_CANCEL, &gl->gl_flags); in do_xmote()
718 wake_up_bit(&gl->gl_flags, GLF_LOCK); in do_xmote()
761 if (test_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
768 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
770 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) { in run_queue()
780 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
783 set_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
800 set_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
913 set_bit(GLF_DEFER_DELETE, &gl->gl_flags); in gfs2_try_to_evict()
916 clear_bit(GLF_DEFER_DELETE, &gl->gl_flags); in gfs2_try_to_evict()
931 if (test_and_set_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) in gfs2_queue_try_to_evict()
941 if (test_and_set_bit(GLF_VERIFY_DELETE, &gl->gl_flags)) in gfs2_queue_verify_delete()
952 bool verify_delete = test_and_clear_bit(GLF_VERIFY_DELETE, &gl->gl_flags); in delete_work_func()
960 if (test_and_clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) in delete_work_func()
990 if (test_bit(GLF_HAVE_REPLY, &gl->gl_flags)) { in glock_work_func()
991 clear_bit(GLF_HAVE_REPLY, &gl->gl_flags); in glock_work_func()
995 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
1007 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
1120 gl->gl_flags = BIT(GLF_INITIAL); in gfs2_glock_get()
1122 gl->gl_flags |= BIT(GLF_INSTANTIATE_NEEDED); in gfs2_glock_get()
1522 test_and_clear_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags))) { in gfs2_glock_nq()
1523 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in gfs2_glock_nq()
1580 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1581 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1609 test_bit(GLF_LOCK, &gl->gl_flags) && in gfs2_glock_dq()
1610 !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in gfs2_glock_dq()
1611 !test_bit(GLF_CANCELING, &gl->gl_flags)) { in gfs2_glock_dq()
1612 if (!test_bit(GLF_MAY_CANCEL, &gl->gl_flags)) { in gfs2_glock_dq()
1616 wq = bit_waitqueue(&gl->gl_flags, GLF_LOCK); in gfs2_glock_dq()
1624 set_bit(GLF_CANCELING, &gl->gl_flags); in gfs2_glock_dq()
1629 clear_bit(GLF_CANCELING, &gl->gl_flags); in gfs2_glock_dq()
1630 clear_and_wake_up_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_dq()
1645 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1807 if (test_bit(GLF_HAVE_REPLY, &gl->gl_flags)) in gfs2_glock_cb()
1859 clear_bit(GLF_MAY_CANCEL, &gl->gl_flags); in gfs2_glock_complete()
1864 set_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1871 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1896 return !test_bit(GLF_LOCK, &gl->gl_flags) && in can_free_glock()
1898 (!test_bit(GLF_LFLUSH, &gl->gl_flags) || in can_free_glock()
1938 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
2028 clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags); in gfs2_cancel_delete_work()
2029 clear_bit(GLF_VERIFY_DELETE, &gl->gl_flags); in gfs2_cancel_delete_work()
2060 if (!test_and_clear_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags)) in thaw_glock()
2067 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in thaw_glock()
2251 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
2336 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()