Home
last modified time | relevance | path

Searched refs:dlm_ctxt (Results 1 – 15 of 15) sorted by relevance

/linux-2.6.39/fs/ocfs2/dlm/
Ddlmdebug.h43 struct dlm_ctxt *dl_ctxt;
47 int dlm_debug_init(struct dlm_ctxt *dlm);
48 void dlm_debug_shutdown(struct dlm_ctxt *dlm);
50 int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm);
51 void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm);
58 static inline int dlm_debug_init(struct dlm_ctxt *dlm) in dlm_debug_init()
62 static inline void dlm_debug_shutdown(struct dlm_ctxt *dlm) in dlm_debug_shutdown()
65 static inline int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm) in dlm_create_debugfs_subroot()
69 static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm) in dlm_destroy_debugfs_subroot()
Ddlmcommon.h62 struct dlm_ctxt *dlm;
127 struct dlm_ctxt struct
190 static inline struct hlist_head *dlm_lockres_hash(struct dlm_ctxt *dlm, unsigned i) in dlm_lockres_hash() argument
195 static inline struct hlist_head *dlm_master_hash(struct dlm_ctxt *dlm, in dlm_master_hash()
244 struct dlm_ctxt *dlm;
254 static inline void dlm_init_work_item(struct dlm_ctxt *dlm, in dlm_init_work_item()
267 static inline void __dlm_set_joining_node(struct dlm_ctxt *dlm, in __dlm_set_joining_node()
324 struct dlm_ctxt *dlm;
841 int dlm_launch_thread(struct dlm_ctxt *dlm);
842 void dlm_complete_thread(struct dlm_ctxt *dlm);
[all …]
Ddlmrecovery.c55 static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node);
58 void dlm_complete_recovery_thread(struct dlm_ctxt *dlm);
59 int dlm_launch_recovery_thread(struct dlm_ctxt *dlm);
60 void dlm_kick_recovery_thread(struct dlm_ctxt *dlm);
61 static int dlm_do_recovery(struct dlm_ctxt *dlm);
63 static int dlm_pick_recovery_master(struct dlm_ctxt *dlm);
64 static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node);
65 static int dlm_init_recovery_area(struct dlm_ctxt *dlm, u8 dead_node);
66 static int dlm_request_all_locks(struct dlm_ctxt *dlm,
68 static void dlm_destroy_recovery_area(struct dlm_ctxt *dlm, u8 dead_node);
[all …]
Ddlmdomain.c156 static void dlm_unregister_domain_handlers(struct dlm_ctxt *dlm);
166 void __dlm_insert_lockres(struct dlm_ctxt *dlm, in __dlm_insert_lockres()
183 struct dlm_lock_resource * __dlm_lookup_lockres_full(struct dlm_ctxt *dlm, in __dlm_lookup_lockres_full()
218 struct dlm_lock_resource * __dlm_lookup_lockres(struct dlm_ctxt *dlm, in __dlm_lookup_lockres()
243 struct dlm_lock_resource * dlm_lookup_lockres(struct dlm_ctxt *dlm, in dlm_lookup_lockres()
256 static struct dlm_ctxt * __dlm_lookup_domain_full(const char *domain, int len) in __dlm_lookup_domain_full()
258 struct dlm_ctxt *tmp = NULL; in __dlm_lookup_domain_full()
266 tmp = list_entry (iter, struct dlm_ctxt, list); in __dlm_lookup_domain_full()
277 static struct dlm_ctxt * __dlm_lookup_domain(const char *domain) in __dlm_lookup_domain()
291 struct dlm_ctxt *tmp = NULL; in dlm_wait_on_domain_helper()
[all …]
Ddlmapi.h31 struct dlm_ctxt;
180 enum dlm_status dlmlock(struct dlm_ctxt *dlm,
190 enum dlm_status dlmunlock(struct dlm_ctxt *dlm,
200 struct dlm_ctxt * dlm_register_domain(const char *domain, u32 key,
203 void dlm_unregister_domain(struct dlm_ctxt *dlm);
216 void dlm_register_eviction_cb(struct dlm_ctxt *dlm,
Ddlmdomain.h31 int dlm_joined(struct dlm_ctxt *dlm);
32 int dlm_shutting_down(struct dlm_ctxt *dlm);
33 void dlm_fire_domain_eviction_callbacks(struct dlm_ctxt *dlm,
Ddlmast.c51 static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
53 static int dlm_should_cancel_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock);
64 static int dlm_should_cancel_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_should_cancel_bast()
91 void __dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in __dlm_queue_ast()
146 void dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_queue_ast()
157 void __dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in __dlm_queue_bast()
183 void dlm_queue_bast(struct dlm_ctxt *dlm, struct dlm_lock *lock) in dlm_queue_bast()
193 static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_update_lvb()
223 void dlm_do_local_ast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_do_local_ast()
243 int dlm_do_remote_ast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_do_remote_ast()
[all …]
Ddlmmaster.c55 static void dlm_mle_node_down(struct dlm_ctxt *dlm,
59 static void dlm_mle_node_up(struct dlm_ctxt *dlm,
65 static int dlm_do_assert_master(struct dlm_ctxt *dlm,
70 static inline int dlm_mle_equal(struct dlm_ctxt *dlm, in dlm_mle_equal()
92 struct dlm_ctxt *dlm,
98 static int dlm_find_mle(struct dlm_ctxt *dlm,
106 static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm,
110 static int dlm_restart_lock_mastery(struct dlm_ctxt *dlm,
114 static int dlm_add_migration_mle(struct dlm_ctxt *dlm,
121 static u8 dlm_pick_migration_target(struct dlm_ctxt *dlm,
[all …]
Ddlmunlock.c58 static enum dlm_status dlm_get_cancel_actions(struct dlm_ctxt *dlm,
63 static enum dlm_status dlm_get_unlock_actions(struct dlm_ctxt *dlm,
69 static enum dlm_status dlm_send_remote_unlock_request(struct dlm_ctxt *dlm,
98 static enum dlm_status dlmunlock_common(struct dlm_ctxt *dlm, in dlmunlock_common()
280 static inline enum dlm_status dlmunlock_master(struct dlm_ctxt *dlm, in dlmunlock_master()
290 static inline enum dlm_status dlmunlock_remote(struct dlm_ctxt *dlm, in dlmunlock_remote()
306 static enum dlm_status dlm_send_remote_unlock_request(struct dlm_ctxt *dlm, in dlm_send_remote_unlock_request()
388 struct dlm_ctxt *dlm = data; in dlm_unlock_lock_handler()
524 static enum dlm_status dlm_get_cancel_actions(struct dlm_ctxt *dlm, in dlm_get_cancel_actions()
556 static enum dlm_status dlm_get_unlock_actions(struct dlm_ctxt *dlm, in dlm_get_unlock_actions()
[all …]
Ddlmthread.c55 static void dlm_flush_asts(struct dlm_ctxt *dlm);
122 void __dlm_lockres_calc_usage(struct dlm_ctxt *dlm, in __dlm_lockres_calc_usage()
148 void dlm_lockres_calc_usage(struct dlm_ctxt *dlm, in dlm_lockres_calc_usage()
160 static void dlm_purge_lockres(struct dlm_ctxt *dlm, in dlm_purge_lockres()
224 static void dlm_run_purge_list(struct dlm_ctxt *dlm, in dlm_run_purge_list()
285 static void dlm_shuffle_lists(struct dlm_ctxt *dlm, in dlm_shuffle_lists()
451 void dlm_kick_thread(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in dlm_kick_thread()
463 void __dlm_dirty_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) in __dlm_dirty_lockres()
488 int dlm_launch_thread(struct dlm_ctxt *dlm) in dlm_launch_thread()
502 void dlm_complete_thread(struct dlm_ctxt *dlm) in dlm_complete_thread()
[all …]
Ddlmconvert.h28 enum dlm_status dlmconvert_master(struct dlm_ctxt *dlm,
31 enum dlm_status dlmconvert_remote(struct dlm_ctxt *dlm,
Ddlmconvert.c58 static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm,
63 static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm,
76 enum dlm_status dlmconvert_master(struct dlm_ctxt *dlm, in dlmconvert_master()
119 static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm, in __dlmconvert_master()
263 enum dlm_status dlmconvert_remote(struct dlm_ctxt *dlm, in dlmconvert_remote()
345 static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm, in dlm_send_remote_convert_request()
424 struct dlm_ctxt *dlm = data; in dlm_convert_lock_handler()
Ddlmdebug.c388 static int debug_purgelist_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_purgelist_print()
419 struct dlm_ctxt *dlm = inode->i_private; in debug_purgelist_open()
444 static int debug_mle_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_mle_print()
479 struct dlm_ctxt *dlm = inode->i_private; in debug_mle_open()
585 struct dlm_ctxt *dlm = dl->dl_ctxt; in lockres_seq_start()
655 struct dlm_ctxt *dlm = inode->i_private; in debug_lockres_open()
714 static int debug_state_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_state_print()
875 struct dlm_ctxt *dlm = inode->i_private; in debug_state_open()
900 int dlm_debug_init(struct dlm_ctxt *dlm) in dlm_debug_init()
954 void dlm_debug_shutdown(struct dlm_ctxt *dlm) in dlm_debug_shutdown()
[all …]
Ddlmlock.c60 static enum dlm_status dlm_send_remote_lock_request(struct dlm_ctxt *dlm,
124 static enum dlm_status dlmlock_master(struct dlm_ctxt *dlm, in dlmlock_master()
223 static enum dlm_status dlmlock_remote(struct dlm_ctxt *dlm, in dlmlock_remote()
303 static enum dlm_status dlm_send_remote_lock_request(struct dlm_ctxt *dlm, in dlm_send_remote_lock_request()
467 struct dlm_ctxt *dlm = data; in dlm_create_lock_handler()
564 enum dlm_status dlmlock(struct dlm_ctxt *dlm, int mode, in dlmlock()
/linux-2.6.39/fs/ocfs2/
Dstack_o2cb.c276 struct dlm_ctxt *dlm; in o2cb_cluster_connect()
333 struct dlm_ctxt *dlm = conn->cc_lockspace; in o2cb_cluster_disconnect()