Lines Matching refs:gl_flags
224 if (!test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_add_to_lru()
225 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
235 if (test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_remove_from_lru()
238 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
448 if (!test_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags)) in gfs2_instantiate()
455 if (test_and_set_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags)) { in gfs2_instantiate()
456 wait_on_bit(&gl->gl_flags, GLF_INSTANTIATE_IN_PROG, in gfs2_instantiate()
470 clear_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags); in gfs2_instantiate()
471 clear_and_wake_up_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags); in gfs2_instantiate()
570 set_bit(nr, &gl->gl_flags); in gfs2_set_demote()
578 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
580 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
603 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
612 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
649 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
666 if (!test_bit(GLF_CANCELING, &gl->gl_flags)) in finish_xmote()
667 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
714 &gl->gl_flags)) in do_xmote()
719 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
723 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
743 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) { in do_xmote()
758 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
803 if (!test_bit(GLF_CANCELING, &gl->gl_flags)) in do_xmote()
804 clear_bit(GLF_LOCK, &gl->gl_flags); in do_xmote()
805 clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
809 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
814 set_bit(GLF_PENDING_REPLY, &gl->gl_flags); in do_xmote()
833 clear_bit(GLF_PENDING_REPLY, &gl->gl_flags); in do_xmote()
854 if (test_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
856 set_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
859 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
861 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
867 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
873 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
888 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
895 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
1003 set_bit(GLF_DEFER_DELETE, &gl->gl_flags); in gfs2_try_evict()
1006 clear_bit(GLF_DEFER_DELETE, &gl->gl_flags); in gfs2_try_evict()
1021 if (test_and_set_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) in gfs2_queue_try_to_evict()
1031 if (test_and_set_bit(GLF_VERIFY_DELETE, &gl->gl_flags)) in gfs2_queue_verify_delete()
1042 bool verify_delete = test_and_clear_bit(GLF_VERIFY_DELETE, &gl->gl_flags); in delete_work_func()
1044 if (test_and_clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) in delete_work_func()
1074 if (test_bit(GLF_HAVE_REPLY, &gl->gl_flags)) { in glock_work_func()
1075 clear_bit(GLF_HAVE_REPLY, &gl->gl_flags); in glock_work_func()
1079 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
1091 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
1204 gl->gl_flags = BIT(GLF_INITIAL); in gfs2_glock_get()
1206 gl->gl_flags |= BIT(GLF_INSTANTIATE_NEEDED); in gfs2_glock_get()
1496 if (test_bit(GLF_LOCK, &gl->gl_flags)) { in add_to_queue()
1502 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
1583 test_and_clear_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags))) { in gfs2_glock_nq()
1584 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in gfs2_glock_nq()
1639 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1640 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1668 test_bit(GLF_LOCK, &gl->gl_flags) && in gfs2_glock_dq()
1669 !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in gfs2_glock_dq()
1670 !test_bit(GLF_CANCELING, &gl->gl_flags)) { in gfs2_glock_dq()
1671 set_bit(GLF_CANCELING, &gl->gl_flags); in gfs2_glock_dq()
1676 clear_bit(GLF_CANCELING, &gl->gl_flags); in gfs2_glock_dq()
1677 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_dq()
1710 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1873 if (test_bit(GLF_HAVE_REPLY, &gl->gl_flags)) in gfs2_glock_cb()
1925 clear_bit(GLF_PENDING_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1930 set_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1937 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1962 return !test_bit(GLF_LOCK, &gl->gl_flags) && in can_free_glock()
1964 (!test_bit(GLF_LFLUSH, &gl->gl_flags) || in can_free_glock()
2004 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
2094 clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags); in gfs2_cancel_delete_work()
2095 clear_bit(GLF_VERIFY_DELETE, &gl->gl_flags); in gfs2_cancel_delete_work()
2126 if (!test_and_clear_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags)) in thaw_glock()
2133 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in thaw_glock()
2309 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
2398 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()