Lines Matching defs:dlm
55 static inline int dlm_mle_equal(struct dlm_ctxt *dlm, in dlm_mle_equal()
163 static inline void __dlm_mle_attach_hb_events(struct dlm_ctxt *dlm, in __dlm_mle_attach_hb_events()
172 static inline void __dlm_mle_detach_hb_events(struct dlm_ctxt *dlm, in __dlm_mle_detach_hb_events()
180 static inline void dlm_mle_detach_hb_events(struct dlm_ctxt *dlm, in dlm_mle_detach_hb_events()
190 struct dlm_ctxt *dlm; in dlm_get_mle_inuse() local
201 struct dlm_ctxt *dlm; in dlm_put_mle_inuse() local
216 struct dlm_ctxt *dlm; in __dlm_put_mle() local
235 struct dlm_ctxt *dlm; in dlm_put_mle() local
252 struct dlm_ctxt *dlm, in dlm_init_mle()
304 void __dlm_unlink_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle) in __dlm_unlink_mle()
313 void __dlm_insert_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle) in __dlm_insert_mle()
324 static int dlm_find_mle(struct dlm_ctxt *dlm, in dlm_find_mle()
346 void dlm_hb_event_notify_attached(struct dlm_ctxt *dlm, int idx, int node_up) in dlm_hb_event_notify_attached()
360 static void dlm_mle_node_down(struct dlm_ctxt *dlm, in dlm_mle_node_down()
374 static void dlm_mle_node_up(struct dlm_ctxt *dlm, in dlm_mle_node_up()
408 struct dlm_ctxt *dlm; in dlm_mle_release() local
469 struct dlm_ctxt *dlm; in dlm_lockres_release() local
525 static void dlm_init_lockres(struct dlm_ctxt *dlm, in dlm_init_lockres()
580 struct dlm_lock_resource *dlm_new_lockres(struct dlm_ctxt *dlm, in dlm_new_lockres()
603 void dlm_lockres_set_refmap_bit(struct dlm_ctxt *dlm, in dlm_lockres_set_refmap_bit()
614 void dlm_lockres_clear_refmap_bit(struct dlm_ctxt *dlm, in dlm_lockres_clear_refmap_bit()
625 static void __dlm_lockres_grab_inflight_ref(struct dlm_ctxt *dlm, in __dlm_lockres_grab_inflight_ref()
635 void dlm_lockres_grab_inflight_ref(struct dlm_ctxt *dlm, in dlm_lockres_grab_inflight_ref()
642 void dlm_lockres_drop_inflight_ref(struct dlm_ctxt *dlm, in dlm_lockres_drop_inflight_ref()
658 void __dlm_lockres_grab_inflight_worker(struct dlm_ctxt *dlm, in __dlm_lockres_grab_inflight_worker()
668 static void __dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, in __dlm_lockres_drop_inflight_worker()
679 static void dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, in dlm_lockres_drop_inflight_worker()
703 struct dlm_lock_resource * dlm_get_lock_resource(struct dlm_ctxt *dlm, in dlm_get_lock_resource()
1003 static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm, in dlm_wait_for_lock_mastery()
1208 static int dlm_restart_lock_mastery(struct dlm_ctxt *dlm, in dlm_restart_lock_mastery()
1311 struct dlm_ctxt *dlm = mle->dlm; in dlm_do_master_request() local
1406 struct dlm_ctxt *dlm = data; in dlm_master_request_handler() local
1652 static int dlm_do_assert_master(struct dlm_ctxt *dlm, in dlm_do_assert_master()
1764 struct dlm_ctxt *dlm = data; in dlm_assert_master_handler() local
2051 int dlm_dispatch_assert_master(struct dlm_ctxt *dlm, in dlm_dispatch_assert_master()
2083 struct dlm_ctxt *dlm = data; in dlm_assert_master_worker() local
2167 static int dlm_pre_master_reco_lockres(struct dlm_ctxt *dlm, in dlm_pre_master_reco_lockres()
2217 int dlm_drop_lockres_ref(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_drop_lockres_ref()
2254 struct dlm_ctxt *dlm = data; in dlm_deref_lockres_handler() local
2348 struct dlm_ctxt *dlm = data; in dlm_deref_lockres_done_handler() local
2410 static void dlm_drop_lockres_ref_done(struct dlm_ctxt *dlm, in dlm_drop_lockres_ref_done()
2443 struct dlm_ctxt *dlm; in dlm_deref_lockres_worker() local
2484 static int dlm_is_lockres_migratable(struct dlm_ctxt *dlm, in dlm_is_lockres_migratable()
2542 static int dlm_migrate_lockres(struct dlm_ctxt *dlm, in dlm_migrate_lockres()
2766 int dlm_empty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_empty_lockres()
2795 int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_lock_basts_flushed()
2806 static int dlm_migration_can_proceed(struct dlm_ctxt *dlm, in dlm_migration_can_proceed()
2824 static int dlm_lockres_is_dirty(struct dlm_ctxt *dlm, in dlm_lockres_is_dirty()
2835 static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm, in dlm_mark_lockres_migrating()
2927 static void dlm_remove_nonlocal_locks(struct dlm_ctxt *dlm, in dlm_remove_nonlocal_locks()
2981 static u8 dlm_pick_migration_target(struct dlm_ctxt *dlm, in dlm_pick_migration_target()
3027 static int dlm_do_migrate_request(struct dlm_ctxt *dlm, in dlm_do_migrate_request()
3107 struct dlm_ctxt *dlm = data; in dlm_migrate_request_handler() local
3184 static int dlm_add_migration_mle(struct dlm_ctxt *dlm, in dlm_add_migration_mle()
3260 static struct dlm_lock_resource *dlm_reset_mleres_owner(struct dlm_ctxt *dlm, in dlm_reset_mleres_owner()
3290 static void dlm_clean_migration_mle(struct dlm_ctxt *dlm, in dlm_clean_migration_mle()
3303 static void dlm_clean_block_mle(struct dlm_ctxt *dlm, in dlm_clean_block_mle()
3332 void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node) in dlm_clean_master_list()
3416 int dlm_finish_migration(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_finish_migration()
3514 void dlm_lockres_release_ast(struct dlm_ctxt *dlm, in dlm_lockres_release_ast()
3533 void dlm_force_free_mles(struct dlm_ctxt *dlm) in dlm_force_free_mles()