/fs/dlm/ |
D | recover.h | 17 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)); 18 uint32_t dlm_recover_status(struct dlm_ls *ls); 19 void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status); 20 int dlm_recover_members_wait(struct dlm_ls *ls); 21 int dlm_recover_directory_wait(struct dlm_ls *ls); 22 int dlm_recover_locks_wait(struct dlm_ls *ls); 23 int dlm_recover_done_wait(struct dlm_ls *ls); 24 int dlm_recover_masters(struct dlm_ls *ls); 25 int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc); 26 int dlm_recover_locks(struct dlm_ls *ls); [all …]
|
D | lock.h | 18 void dlm_receive_message_saved(struct dlm_ls *ls, struct dlm_message *ms); 24 void dlm_scan_rsbs(struct dlm_ls *ls); 25 int dlm_lock_recovery_try(struct dlm_ls *ls); 26 void dlm_unlock_recovery(struct dlm_ls *ls); 27 void dlm_scan_timeout(struct dlm_ls *ls); 28 void dlm_adjust_timeouts(struct dlm_ls *ls); 30 int dlm_purge_locks(struct dlm_ls *ls); 32 void dlm_grant_after_purge(struct dlm_ls *ls); 33 int dlm_recover_waiters_post(struct dlm_ls *ls); 34 void dlm_recover_waiters_pre(struct dlm_ls *ls); [all …]
|
D | member.h | 16 int dlm_ls_stop(struct dlm_ls *ls); 17 int dlm_ls_start(struct dlm_ls *ls); 18 void dlm_clear_members(struct dlm_ls *ls); 19 void dlm_clear_members_gone(struct dlm_ls *ls); 20 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out); 21 int dlm_is_removed(struct dlm_ls *ls, int nodeid); 22 int dlm_is_member(struct dlm_ls *ls, int nodeid);
|
D | dir.h | 19 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash); 20 void dlm_dir_remove_entry(struct dlm_ls *ls, int nodeid, char *name, int len); 21 void dlm_dir_clear(struct dlm_ls *ls); 22 void dlm_clear_free_entries(struct dlm_ls *ls); 23 int dlm_recover_directory(struct dlm_ls *ls); 24 int dlm_dir_lookup(struct dlm_ls *ls, int nodeid, char *name, int namelen, 26 void dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen,
|
D | lockspace.c | 35 static ssize_t dlm_control_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_control_store() 58 static ssize_t dlm_event_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_event_store() 66 static ssize_t dlm_id_show(struct dlm_ls *ls, char *buf) in dlm_id_show() 71 static ssize_t dlm_id_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_id_store() 77 static ssize_t dlm_recover_status_show(struct dlm_ls *ls, char *buf) in dlm_recover_status_show() 83 static ssize_t dlm_recover_nodeid_show(struct dlm_ls *ls, char *buf) in dlm_recover_nodeid_show() 90 ssize_t (*show)(struct dlm_ls *, char *); 91 ssize_t (*store)(struct dlm_ls *, const char *, size_t); 132 struct dlm_ls *ls = container_of(kobj, struct dlm_ls, ls_kobj); in dlm_attr_show() 140 struct dlm_ls *ls = container_of(kobj, struct dlm_ls, ls_kobj); in dlm_attr_store() [all …]
|
D | recover.c | 46 struct dlm_ls *ls = (struct dlm_ls *) data; in dlm_wait_timer_fn() 51 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) in dlm_wait_function() 79 uint32_t dlm_recover_status(struct dlm_ls *ls) in dlm_recover_status() 88 void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status) in dlm_set_recover_status() 95 static int wait_status_all(struct dlm_ls *ls, uint32_t wait_status) in wait_status_all() 124 static int wait_status_low(struct dlm_ls *ls, uint32_t wait_status) in wait_status_low() 149 static int wait_status(struct dlm_ls *ls, uint32_t status) in wait_status() 164 int dlm_recover_members_wait(struct dlm_ls *ls) in dlm_recover_members_wait() 169 int dlm_recover_directory_wait(struct dlm_ls *ls) in dlm_recover_directory_wait() 174 int dlm_recover_locks_wait(struct dlm_ls *ls) in dlm_recover_locks_wait() [all …]
|
D | recoverd.h | 17 void dlm_recoverd_kick(struct dlm_ls *ls); 18 void dlm_recoverd_stop(struct dlm_ls *ls); 19 int dlm_recoverd_start(struct dlm_ls *ls); 20 void dlm_recoverd_suspend(struct dlm_ls *ls); 21 void dlm_recoverd_resume(struct dlm_ls *ls);
|
D | rcom.c | 28 static int rcom_response(struct dlm_ls *ls) in rcom_response() 33 static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in create_rcom() 68 static void send_rcom(struct dlm_ls *ls, struct dlm_mhandle *mh, in send_rcom() 79 static void make_config(struct dlm_ls *ls, struct rcom_config *rf) in make_config() 85 static int check_config(struct dlm_ls *ls, struct dlm_rcom *rc, int nodeid) in check_config() 114 static void allow_sync_reply(struct dlm_ls *ls, uint64_t *new_seq) in allow_sync_reply() 122 static void disallow_sync_reply(struct dlm_ls *ls) in disallow_sync_reply() 130 int dlm_rcom_status(struct dlm_ls *ls, int nodeid) in dlm_rcom_status() 171 static void receive_rcom_status(struct dlm_ls *ls, struct dlm_rcom *rc_in) in receive_rcom_status() 189 static void receive_sync_reply(struct dlm_ls *ls, struct dlm_rcom *rc_in) in receive_sync_reply() [all …]
|
D | recoverd.c | 33 static int enable_locking(struct dlm_ls *ls, uint64_t seq) in enable_locking() 52 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover() 246 static void do_ls_recovery(struct dlm_ls *ls) in do_ls_recovery() 267 struct dlm_ls *ls; in dlm_recoverd() 289 void dlm_recoverd_kick(struct dlm_ls *ls) in dlm_recoverd_kick() 295 int dlm_recoverd_start(struct dlm_ls *ls) in dlm_recoverd_start() 308 void dlm_recoverd_stop(struct dlm_ls *ls) in dlm_recoverd_stop() 313 void dlm_recoverd_suspend(struct dlm_ls *ls) in dlm_recoverd_suspend() 319 void dlm_recoverd_resume(struct dlm_ls *ls) in dlm_recoverd_resume()
|
D | dir.c | 27 static void put_free_de(struct dlm_ls *ls, struct dlm_direntry *de) in put_free_de() 34 static struct dlm_direntry *get_free_de(struct dlm_ls *ls, int len) in get_free_de() 56 void dlm_clear_free_entries(struct dlm_ls *ls) in dlm_clear_free_entries() 79 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) in dlm_hash2nodeid() 120 static inline uint32_t dir_hash(struct dlm_ls *ls, char *name, int len) in dir_hash() 130 static void add_entry_to_hash(struct dlm_ls *ls, struct dlm_direntry *de) in add_entry_to_hash() 138 static struct dlm_direntry *search_bucket(struct dlm_ls *ls, char *name, in search_bucket() 152 void dlm_dir_remove_entry(struct dlm_ls *ls, int nodeid, char *name, int namelen) in dlm_dir_remove_entry() 179 void dlm_dir_clear(struct dlm_ls *ls) in dlm_dir_clear() 199 int dlm_recover_directory(struct dlm_ls *ls) in dlm_recover_directory() [all …]
|
D | member.c | 21 static void add_ordered_member(struct dlm_ls *ls, struct dlm_member *new) in add_ordered_member() 45 static int dlm_add_member(struct dlm_ls *ls, int nodeid) in dlm_add_member() 67 static void dlm_remove_member(struct dlm_ls *ls, struct dlm_member *memb) in dlm_remove_member() 73 int dlm_is_member(struct dlm_ls *ls, int nodeid) in dlm_is_member() 84 int dlm_is_removed(struct dlm_ls *ls, int nodeid) in dlm_is_removed() 106 void dlm_clear_members(struct dlm_ls *ls) in dlm_clear_members() 112 void dlm_clear_members_gone(struct dlm_ls *ls) in dlm_clear_members_gone() 117 static void make_member_array(struct dlm_ls *ls) in make_member_array() 163 static int ping_members(struct dlm_ls *ls) in ping_members() 182 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out) in dlm_recover_members() [all …]
|
D | requestqueue.h | 16 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms); 17 int dlm_process_requestqueue(struct dlm_ls *ls); 18 void dlm_wait_requestqueue(struct dlm_ls *ls); 19 void dlm_purge_requestqueue(struct dlm_ls *ls);
|
D | lockspace.h | 19 struct dlm_ls *dlm_find_lockspace_global(uint32_t id); 20 struct dlm_ls *dlm_find_lockspace_local(void *id); 21 struct dlm_ls *dlm_find_lockspace_device(int minor); 22 void dlm_put_lockspace(struct dlm_ls *ls);
|
D | lock.c | 89 static void do_purge(struct dlm_ls *ls, int nodeid, int pid); 199 static inline void dlm_lock_recovery(struct dlm_ls *ls) in dlm_lock_recovery() 204 void dlm_unlock_recovery(struct dlm_ls *ls) in dlm_unlock_recovery() 209 int dlm_lock_recovery_try(struct dlm_ls *ls) in dlm_lock_recovery_try() 333 static struct dlm_rsb *create_rsb(struct dlm_ls *ls, char *name, int len) in create_rsb() 376 static int _search_rsb(struct dlm_ls *ls, char *name, int len, int b, in _search_rsb() 411 static int search_rsb(struct dlm_ls *ls, char *name, int len, int b, in search_rsb() 435 static int find_rsb(struct dlm_ls *ls, char *name, int namelen, in find_rsb() 513 struct dlm_ls *ls = r->res_ls; in toss_rsb() 530 struct dlm_ls *ls = r->res_ls; in put_rsb() [all …]
|
D | dlm_internal.h | 51 struct dlm_ls; 264 struct dlm_ls *res_ls; /* the lockspace */ 439 struct dlm_ls { struct 569 static inline int dlm_locking_stopped(struct dlm_ls *ls) in dlm_locking_stopped() 574 static inline int dlm_recovery_stopped(struct dlm_ls *ls) in dlm_recovery_stopped() 579 static inline int dlm_no_directory(struct dlm_ls *ls) in dlm_no_directory() 593 int dlm_create_debug_file(struct dlm_ls *ls); 594 void dlm_delete_debug_file(struct dlm_ls *ls); 598 static inline int dlm_create_debug_file(struct dlm_ls *ls) { return 0; } in dlm_create_debug_file() 599 static inline void dlm_delete_debug_file(struct dlm_ls *ls) { } in dlm_delete_debug_file()
|
D | requestqueue.c | 33 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms) in dlm_add_requestqueue() 63 int dlm_process_requestqueue(struct dlm_ls *ls) in dlm_process_requestqueue() 107 void dlm_wait_requestqueue(struct dlm_ls *ls) in dlm_wait_requestqueue() 119 static int purge_request(struct dlm_ls *ls, struct dlm_message *ms, int nodeid) in purge_request() 172 void dlm_purge_requestqueue(struct dlm_ls *ls) in dlm_purge_requestqueue()
|
D | memory.h | 19 struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls, int namelen); 21 struct dlm_lkb *dlm_allocate_lkb(struct dlm_ls *ls); 23 char *dlm_allocate_lvb(struct dlm_ls *ls);
|
D | rcom.h | 17 int dlm_rcom_status(struct dlm_ls *ls, int nodeid); 18 int dlm_rcom_names(struct dlm_ls *ls, int nodeid, char *last_name,int last_len); 21 void dlm_receive_rcom(struct dlm_ls *ls, struct dlm_rcom *rc, int nodeid);
|
D | memory.c | 38 char *dlm_allocate_lvb(struct dlm_ls *ls) in dlm_allocate_lvb() 54 struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls, int namelen) in dlm_allocate_rsb() 71 struct dlm_lkb *dlm_allocate_lkb(struct dlm_ls *ls) in dlm_allocate_lkb()
|
D | user.c | 180 struct dlm_ls *ls; in dlm_user_add_ast() 259 struct dlm_ls *ls; in device_user_lock() 304 struct dlm_ls *ls; in device_user_unlock() 333 struct dlm_ls *ls; in device_user_deadlock() 346 static int dlm_device_register(struct dlm_ls *ls, char *name) in dlm_device_register() 374 int dlm_device_deregister(struct dlm_ls *ls) in dlm_device_deregister() 393 struct dlm_ls *ls; in device_user_purge() 409 struct dlm_ls *ls; in device_create_lockspace() 438 struct dlm_ls *ls; in device_remove_lockspace() 639 struct dlm_ls *ls; in device_open() [all …]
|
D | user.h | 15 int dlm_device_deregister(struct dlm_ls *ls);
|
D | debug_fs.c | 395 struct dlm_ls *ls = seq->private; in table_seq_start() 467 struct dlm_ls *ls = seq->private; in table_seq_next() 619 struct dlm_ls *ls = file->private_data; in waiters_read() 648 void dlm_delete_debug_file(struct dlm_ls *ls) in dlm_delete_debug_file() 660 int dlm_create_debug_file(struct dlm_ls *ls) in dlm_create_debug_file()
|
D | plock.c | 76 struct dlm_ls *ls; in dlm_posix_lock() 206 struct dlm_ls *ls; in dlm_posix_unlock() 261 struct dlm_ls *ls; in dlm_posix_get()
|
D | ast.c | 59 struct dlm_ls *ls = NULL; in process_asts()
|