Lines Matching refs:gl_flags
194 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
207 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
424 clear_bit(GLF_QUEUED, &gl->gl_flags); in state_change()
437 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
439 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
462 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
468 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
505 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
522 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
553 set_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
557 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
561 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
565 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in do_xmote()
567 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
623 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
626 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
628 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
634 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
638 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
655 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
662 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
677 if (test_bit(GLF_INODE_CREATING, &gl->gl_flags)) in delete_work_func()
695 if (test_and_clear_bit(GLF_REPLY_PENDING, &gl->gl_flags)) { in glock_work_func()
700 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
710 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
711 set_bit(GLF_DEMOTE, &gl->gl_flags); in glock_work_func()
824 gl->gl_flags = 0; in gfs2_glock_get()
966 set_bit(bit, &gl->gl_flags); in handle_callback()
1023 if (test_bit(GLF_LOCK, &gl->gl_flags)) in add_to_queue()
1025 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
1045 set_bit(GLF_QUEUED, &gl->gl_flags); in add_to_queue()
1097 if (test_bit(GLF_LRU, &gl->gl_flags)) in gfs2_glock_nq()
1103 test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { in gfs2_glock_nq()
1104 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_nq()
1150 GLOCK_BUG_ON(gl, test_and_set_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_glock_dq()
1154 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_dq()
1157 !test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1158 !test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_glock_dq()
1161 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl) && in gfs2_glock_dq()
1168 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1169 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1182 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1341 if (test_bit(GLF_QUEUED, &gl->gl_flags) && in gfs2_glock_cb()
1345 if (test_bit(GLF_REPLY_PENDING, &gl->gl_flags)) in gfs2_glock_cb()
1403 set_bit(GLF_FROZEN, &gl->gl_flags); in gfs2_glock_complete()
1410 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_complete()
1461 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_dispose_glock_lru()
1465 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1469 WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_dispose_glock_lru()
1497 if (!test_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_scan_glock_lru()
1574 if (!test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) { in thaw_glock()
1578 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in thaw_glock()
1651 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_finish_truncate()
1727 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
1788 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()