Lines Matching refs:ml

1049 				if (lock->ml.node == dead_node) {  in dlm_move_reco_locks_to_list()
1124 struct_size(mres, ml, mres->num_locks), in dlm_send_mig_lockres_msg()
1183 if (lock->ml.type != LKM_EXMODE && lock->ml.type != LKM_PRMODE) in dlm_prepare_lvb_for_migration()
1197 dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)), in dlm_prepare_lvb_for_migration()
1198 dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)), in dlm_prepare_lvb_for_migration()
1200 lock->ml.node); in dlm_prepare_lvb_for_migration()
1210 struct dlm_migratable_lock *ml; in dlm_add_lock_to_array() local
1213 ml = &(mres->ml[lock_num]); in dlm_add_lock_to_array()
1214 ml->cookie = lock->ml.cookie; in dlm_add_lock_to_array()
1215 ml->type = lock->ml.type; in dlm_add_lock_to_array()
1216 ml->convert_type = lock->ml.convert_type; in dlm_add_lock_to_array()
1217 ml->highest_blocked = lock->ml.highest_blocked; in dlm_add_lock_to_array()
1218 ml->list = queue; in dlm_add_lock_to_array()
1220 ml->flags = lock->lksb->flags; in dlm_add_lock_to_array()
1223 ml->node = lock->ml.node; in dlm_add_lock_to_array()
1236 dummy.ml.cookie = 0; in dlm_add_dummy_lock()
1237 dummy.ml.type = LKM_IVMODE; in dlm_add_dummy_lock()
1238 dummy.ml.convert_type = LKM_IVMODE; in dlm_add_dummy_lock()
1239 dummy.ml.highest_blocked = LKM_IVMODE; in dlm_add_dummy_lock()
1241 dummy.ml.node = dlm->node_num; in dlm_add_dummy_lock()
1246 struct dlm_migratable_lock *ml, in dlm_is_dummy_lock() argument
1249 if (unlikely(ml->cookie == 0 && in dlm_is_dummy_lock()
1250 ml->type == LKM_IVMODE && in dlm_is_dummy_lock()
1251 ml->convert_type == LKM_IVMODE && in dlm_is_dummy_lock()
1252 ml->highest_blocked == LKM_IVMODE && in dlm_is_dummy_lock()
1253 ml->list == DLM_BLOCKED_LIST)) { in dlm_is_dummy_lock()
1254 *nodenum = ml->node; in dlm_is_dummy_lock()
1509 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler()
1510 item->u.ml.real_master = real_master; in dlm_mig_lockres_handler()
1511 item->u.ml.extra_ref = extra_refs; in dlm_mig_lockres_handler()
1545 res = item->u.ml.lockres; in dlm_mig_lockres_worker()
1546 real_master = item->u.ml.real_master; in dlm_mig_lockres_worker()
1547 extra_ref = item->u.ml.extra_ref; in dlm_mig_lockres_worker()
1791 struct dlm_migratable_lock *ml; in dlm_process_recovery_data() local
1804 ml = &(mres->ml[i]); in dlm_process_recovery_data()
1806 if (dlm_is_dummy_lock(dlm, ml, &from)) { in dlm_process_recovery_data()
1817 BUG_ON(ml->highest_blocked != LKM_IVMODE); in dlm_process_recovery_data()
1821 queue = dlm_list_num_to_pointer(res, ml->list); in dlm_process_recovery_data()
1827 if (ml->node == dlm->node_num) { in dlm_process_recovery_data()
1838 if (lock->ml.cookie == ml->cookie) in dlm_process_recovery_data()
1849 c = ml->cookie; in dlm_process_recovery_data()
1856 ml->node, ml->list, ml->flags, ml->type, in dlm_process_recovery_data()
1857 ml->convert_type, ml->highest_blocked); in dlm_process_recovery_data()
1862 if (lock->ml.node != ml->node) { in dlm_process_recovery_data()
1863 c = lock->ml.cookie; in dlm_process_recovery_data()
1869 lock->ml.node); in dlm_process_recovery_data()
1870 c = ml->cookie; in dlm_process_recovery_data()
1876 ml->node, ml->list, ml->flags, ml->type, in dlm_process_recovery_data()
1877 ml->convert_type, ml->highest_blocked); in dlm_process_recovery_data()
1883 c = ml->cookie; in dlm_process_recovery_data()
1888 j, ml->list, res->lockname.len, in dlm_process_recovery_data()
1908 newlock = dlm_new_lock(ml->type, ml->node, in dlm_process_recovery_data()
1909 be64_to_cpu(ml->cookie), NULL); in dlm_process_recovery_data()
1917 if (ml->convert_type != LKM_IVMODE) { in dlm_process_recovery_data()
1919 newlock->ml.convert_type = ml->convert_type; in dlm_process_recovery_data()
1921 lksb->flags |= (ml->flags & in dlm_process_recovery_data()
1924 if (ml->type == LKM_NLMODE) in dlm_process_recovery_data()
1931 if (ml->list == DLM_BLOCKED_LIST) in dlm_process_recovery_data()
1948 BUG_ON(ml->type != LKM_EXMODE && in dlm_process_recovery_data()
1949 ml->type != LKM_PRMODE); in dlm_process_recovery_data()
1951 (ml->type == LKM_EXMODE || in dlm_process_recovery_data()
1957 res->lockname.name, ml->type); in dlm_process_recovery_data()
1992 if (lock->ml.cookie == ml->cookie) { in dlm_process_recovery_data()
1993 c = lock->ml.cookie; in dlm_process_recovery_data()
2002 ml->type, ml->convert_type, ml->node, in dlm_process_recovery_data()
2003 dlm_get_lock_cookie_node(be64_to_cpu(ml->cookie)), in dlm_process_recovery_data()
2004 dlm_get_lock_cookie_seq(be64_to_cpu(ml->cookie)), in dlm_process_recovery_data()
2005 ml->list); in dlm_process_recovery_data()
2015 ml->list == DLM_CONVERTING_LIST && in dlm_process_recovery_data()
2016 newlock->ml.type > in dlm_process_recovery_data()
2017 newlock->ml.convert_type) { in dlm_process_recovery_data()
2025 res->lockname.len, res->lockname.name, ml->node); in dlm_process_recovery_data()
2026 dlm_lockres_set_refmap_bit(dlm, res, ml->node); in dlm_process_recovery_data()
2201 if (lock->ml.type != LKM_EXMODE && in dlm_lvb_needs_invalidation()
2202 lock->ml.type != LKM_PRMODE) in dlm_lvb_needs_invalidation()
2204 } else if (lock->ml.type == LKM_EXMODE) in dlm_lvb_needs_invalidation()
2235 if (lock->ml.node == search_node) { in dlm_revalidate_lvb()
2270 if (lock->ml.node == dead_node) { in dlm_free_dead_locks()
2279 if (lock->ml.node == dead_node) { in dlm_free_dead_locks()
2288 if (lock->ml.node == dead_node) { in dlm_free_dead_locks()
2355 if (lock->ml.node == dead_node) { in dlm_do_local_recovery_cleanup()