Lines Matching refs:gl_flags

225 	if (!test_bit(GLF_LRU, &gl->gl_flags)) {  in gfs2_glock_add_to_lru()
226 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
239 if (test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_remove_from_lru()
242 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
434 if (!test_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags)) in gfs2_instantiate()
441 if (test_and_set_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags)) { in gfs2_instantiate()
442 wait_on_bit(&gl->gl_flags, GLF_INSTANTIATE_IN_PROG, in gfs2_instantiate()
456 clear_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags); in gfs2_instantiate()
457 clear_and_wake_up_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags); in gfs2_instantiate()
551 set_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_set_demote()
559 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
561 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
583 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
591 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
629 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
646 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
694 &gl->gl_flags)) in do_xmote()
699 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
703 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
719 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) { in do_xmote()
734 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
778 clear_bit(GLF_LOCK, &gl->gl_flags); in do_xmote()
779 clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
783 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
820 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
823 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
825 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
831 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
835 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
848 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
855 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
982 if (test_and_set_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) in gfs2_queue_try_to_evict()
992 if (test_and_set_bit(GLF_VERIFY_EVICT, &gl->gl_flags)) in gfs2_queue_verify_evict()
1006 if (test_and_clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags)) { in delete_work_func()
1033 if (test_and_clear_bit(GLF_VERIFY_EVICT, &gl->gl_flags)) { in delete_work_func()
1057 if (test_and_clear_bit(GLF_REPLY_PENDING, &gl->gl_flags)) { in glock_work_func()
1062 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
1072 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
1189 gl->gl_flags = glops->go_instantiate ? BIT(GLF_INSTANTIATE_NEEDED) : 0; in gfs2_glock_get()
1421 set_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in handle_callback()
1489 if (test_bit(GLF_LOCK, &gl->gl_flags)) { in add_to_queue()
1495 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
1571 if (test_bit(GLF_LRU, &gl->gl_flags)) in gfs2_glock_nq()
1578 test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { in gfs2_glock_nq()
1579 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_nq()
1606 return (test_bit(GLF_DEMOTE, &gl->gl_flags) || in needs_demote()
1607 test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags)); in needs_demote()
1637 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl)) in __gfs2_glock_dq()
1642 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1643 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in __gfs2_glock_dq()
1705 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1866 if (test_bit(GLF_REPLY_PENDING, &gl->gl_flags)) in gfs2_glock_cb()
1922 set_bit(GLF_FROZEN, &gl->gl_flags); in gfs2_glock_complete()
1929 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_complete()
1975 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1979 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1983 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_dispose_glock_lru()
1990 WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_dispose_glock_lru()
2017 if (!test_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_scan_glock_lru()
2088 clear_bit(GLF_TRY_TO_EVICT, &gl->gl_flags); in gfs2_cancel_delete_work()
2089 clear_bit(GLF_VERIFY_EVICT, &gl->gl_flags); in gfs2_cancel_delete_work()
2120 if (!test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) in thaw_glock()
2124 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in thaw_glock()
2284 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
2367 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()