Lines Matching refs:gl_flags
218 if (!test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_add_to_lru()
219 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_add_to_lru()
232 if (test_bit(GLF_LRU, &gl->gl_flags)) { in gfs2_glock_remove_from_lru()
235 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_glock_remove_from_lru()
473 set_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_set_demote()
481 clear_bit(GLF_DEMOTE, &gl->gl_flags); in gfs2_demote_wake()
483 wake_up_bit(&gl->gl_flags, GLF_DEMOTE); in gfs2_demote_wake()
506 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && in finish_xmote()
512 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { in finish_xmote()
550 if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) in finish_xmote()
567 clear_bit(GLF_LOCK, &gl->gl_flags); in finish_xmote()
614 &gl->gl_flags)) in do_xmote()
619 set_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
623 clear_bit(GLF_BLOCKING, &gl->gl_flags); in do_xmote()
639 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) { in do_xmote()
654 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
689 clear_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags); in do_xmote()
744 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) in run_queue()
747 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); in run_queue()
749 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && in run_queue()
755 set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags); in run_queue()
759 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) in run_queue()
776 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
783 clear_bit(GLF_LOCK, &gl->gl_flags); in run_queue()
875 clear_bit(GLF_PENDING_DELETE, &gl->gl_flags); in delete_work_func()
881 if (test_bit(GLF_INODE_CREATING, &gl->gl_flags)) in delete_work_func()
884 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) { in delete_work_func()
925 if (test_and_clear_bit(GLF_REPLY_PENDING, &gl->gl_flags)) { in glock_work_func()
930 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in glock_work_func()
940 clear_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in glock_work_func()
1054 gl->gl_flags = 0; in gfs2_glock_get()
1290 set_bit(GLF_PENDING_DEMOTE, &gl->gl_flags); in handle_callback()
1349 if (test_bit(GLF_LOCK, &gl->gl_flags)) in add_to_queue()
1351 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) in add_to_queue()
1421 if (test_bit(GLF_LRU, &gl->gl_flags)) in gfs2_glock_nq()
1427 test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { in gfs2_glock_nq()
1428 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_nq()
1491 !test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1492 !test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_glock_dq()
1495 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl)) in gfs2_glock_dq()
1501 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1502 !test_bit(GLF_DEMOTE, &gl->gl_flags) && in gfs2_glock_dq()
1515 wait_on_bit(&gl->gl_flags, GLF_DEMOTE, TASK_UNINTERRUPTIBLE); in gfs2_glock_dq_wait()
1679 if (test_bit(GLF_REPLY_PENDING, &gl->gl_flags)) in gfs2_glock_cb()
1735 set_bit(GLF_FROZEN, &gl->gl_flags); in gfs2_glock_complete()
1742 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in gfs2_glock_complete()
1787 clear_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1791 set_bit(GLF_LRU, &gl->gl_flags); in gfs2_dispose_glock_lru()
1795 if (test_and_set_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_dispose_glock_lru()
1802 WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags)); in gfs2_dispose_glock_lru()
1830 if (!test_bit(GLF_LOCK, &gl->gl_flags)) { in gfs2_scan_glock_lru()
1906 set_bit(GLF_PENDING_DELETE, &gl->gl_flags); in gfs2_queue_delete_work()
1914 clear_bit(GLF_PENDING_DELETE, &gl->gl_flags); in gfs2_cancel_delete_work()
1921 return test_bit(GLF_PENDING_DELETE, &gl->gl_flags); in gfs2_delete_work_queued()
1948 if (!test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) in thaw_glock()
1952 set_bit(GLF_REPLY_PENDING, &gl->gl_flags); in thaw_glock()
2028 clear_bit(GLF_LOCK, &gl->gl_flags); in gfs2_glock_finish_truncate()
2106 const unsigned long *gflags = &gl->gl_flags; in gflags2str()
2185 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) in gfs2_dump_glock()