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(GLF_DEMOTE, &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()
601 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
609 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
647 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
664 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
711 &gl->gl_flags)) in do_xmote()
716 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
720 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
740 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) { in do_xmote()
755 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
800 clear_bit(GLF_LOCK, &gl->gl_flags); in do_xmote()
801 clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
805 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
848 if (test_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
850 set_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
852 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
854 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
860 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
864 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
877 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
884 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
1010 if (test_and_set_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) in gfs2_queue_try_to_evict()
1020 if (test_and_set_bit(GLF_VERIFY_EVICT, &gl->gl_flags)) in gfs2_queue_verify_evict()
1034 if (test_and_clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) { in delete_work_func()
1061 if (test_and_clear_bit(GLF_VERIFY_EVICT, &gl->gl_flags)) { in delete_work_func()
1086 if (test_bit(GLF_HAVE_REPLY, &gl->gl_flags)) { in glock_work_func()
1087 clear_bit(GLF_HAVE_REPLY, &gl->gl_flags); in glock_work_func()
1091 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
1103 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
1217 gl->gl_flags = BIT(GLF_INITIAL); in gfs2_glock_get()
1219 gl->gl_flags |= BIT(GLF_INSTANTIATE_NEEDED); in gfs2_glock_get()
1447 set_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in request_demote()
1515 if (test_bit(GLF_LOCK, &gl->gl_flags)) { in add_to_queue()
1521 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
1612 test_and_clear_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags))) { in gfs2_glock_nq()
1613 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in gfs2_glock_nq()
1641 return (test_bit(GLF_DEMOTE, &gl->gl_flags) || in needs_demote()
1642 test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags)); in needs_demote()
1674 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1675 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1737 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1900 if (test_bit(GLF_HAVE_REPLY, &gl->gl_flags)) in gfs2_glock_cb()
1956 set_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1963 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in gfs2_glock_complete()
1988 return !test_bit(GLF_LOCK, &gl->gl_flags) && in can_free_glock()
1990 (!test_bit(GLF_LFLUSH, &gl->gl_flags) || in can_free_glock()
2030 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
2120 clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags); in gfs2_cancel_delete_work()
2121 clear_bit(GLF_VERIFY_EVICT, &gl->gl_flags); in gfs2_cancel_delete_work()
2152 if (!test_and_clear_bit(GLF_HAVE_FROZEN_REPLY, &gl->gl_flags)) in thaw_glock()
2159 set_bit(GLF_HAVE_REPLY, &gl->gl_flags); in thaw_glock()
2335 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
2418 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()