Home
last modified time | relevance | path

Searched defs:ls (Results 1 – 20 of 20) sorted by relevance

/fs/dlm/
Drecover.c46 struct dlm_ls *ls = (struct dlm_ls *) data; in dlm_wait_timer_fn() local
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 …]
Drecoverd.c33 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() local
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()
Dlockspace.c35 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()
132 struct dlm_ls *ls = container_of(kobj, struct dlm_ls, ls_kobj); in dlm_attr_show() local
140 struct dlm_ls *ls = container_of(kobj, struct dlm_ls, ls_kobj); in dlm_attr_store() local
147 struct dlm_ls *ls = container_of(k, struct dlm_ls, ls_kobj); in lockspace_kobj_release() local
164 static int do_uevent(struct dlm_ls *ls, int in) in do_uevent()
[all …]
Drcom.c28 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 …]
Dmember.c21 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 …]
Ddir.c27 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 …]
Dlock.c199 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() local
530 struct dlm_ls *ls = r->res_ls; in put_rsb() local
584 static int create_lkb(struct dlm_ls *ls, struct dlm_lkb **lkb_ret) in create_lkb()
[all …]
Drequestqueue.c33 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()
Dmemory.c38 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()
Duser.c180 struct dlm_ls *ls; in dlm_user_add_ast() local
259 struct dlm_ls *ls; in device_user_lock() local
304 struct dlm_ls *ls; in device_user_unlock() local
333 struct dlm_ls *ls; in device_user_deadlock() local
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() local
409 struct dlm_ls *ls; in device_create_lockspace() local
438 struct dlm_ls *ls; in device_remove_lockspace() local
639 struct dlm_ls *ls; in device_open() local
[all …]
Ddebug_fs.c395 struct dlm_ls *ls = seq->private; in table_seq_start() local
467 struct dlm_ls *ls = seq->private; in table_seq_next() local
619 struct dlm_ls *ls = file->private_data; in waiters_read() local
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()
Dplock.c76 struct dlm_ls *ls; in dlm_posix_lock() local
206 struct dlm_ls *ls; in dlm_posix_unlock() local
261 struct dlm_ls *ls; in dlm_posix_get() local
Dast.c59 struct dlm_ls *ls = NULL; in process_asts() local
Ddlm_internal.h67 #define log_error(ls, fmt, args...) \ argument
70 #define log_debug(ls, fmt, args...) \ argument
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()
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()
/fs/gfs2/locking/dlm/
Dsysfs.c15 static ssize_t proto_name_show(struct gdlm_ls *ls, char *buf) in proto_name_show()
20 static ssize_t block_show(struct gdlm_ls *ls, char *buf) in block_show()
31 static ssize_t block_store(struct gdlm_ls *ls, const char *buf, size_t len) in block_store()
49 static ssize_t withdraw_show(struct gdlm_ls *ls, char *buf) in withdraw_show()
60 static ssize_t withdraw_store(struct gdlm_ls *ls, const char *buf, size_t len) in withdraw_store()
75 static ssize_t id_show(struct gdlm_ls *ls, char *buf) in id_show()
80 static ssize_t jid_show(struct gdlm_ls *ls, char *buf) in jid_show()
85 static ssize_t first_show(struct gdlm_ls *ls, char *buf) in first_show()
90 static ssize_t first_done_show(struct gdlm_ls *ls, char *buf) in first_done_show()
95 static ssize_t recover_show(struct gdlm_ls *ls, char *buf) in recover_show()
[all …]
Dmount.c18 struct gdlm_ls *ls; in init_gdlm() local
53 static int make_args(struct gdlm_ls *ls, char *data_arg, int *nodir) in make_args()
123 struct gdlm_ls *ls; in gdlm_mount() local
175 struct gdlm_ls *ls = lockspace; in gdlm_unmount() local
200 struct gdlm_ls *ls = lockspace; in gdlm_recovery_done() local
213 struct gdlm_ls *ls = lockspace; in gdlm_others_may_mount() local
224 struct gdlm_ls *ls = lockspace; in gdlm_withdraw() local
239 struct gdlm_ls *ls = lockspace; in gdlm_plock() local
246 struct gdlm_ls *ls = lockspace; in gdlm_punlock() local
253 struct gdlm_ls *ls = lockspace; in gdlm_plock_get() local
Dthread.c12 static inline int no_work(struct gdlm_ls *ls) in no_work()
25 struct gdlm_ls *ls = (struct gdlm_ls *) data; in gdlm_thread() local
48 int gdlm_init_threads(struct gdlm_ls *ls) in gdlm_init_threads()
64 void gdlm_release_threads(struct gdlm_ls *ls) in gdlm_release_threads()
Dlock.c39 struct gdlm_ls *ls = lp->ls; in queue_submit() local
56 struct gdlm_ls *ls = lp->ls; in gdlm_delete_lp() local
69 struct gdlm_ls *ls = lp->ls; in gdlm_queue_delayed() local
78 struct gdlm_ls *ls = lp->ls; in process_complete() local
271 struct gdlm_ls *ls = lp->ls; in process_blocking() local
381 static int gdlm_create_lp(struct gdlm_ls *ls, struct lm_lockname *name, in gdlm_create_lp()
423 struct gdlm_ls *ls = lp->ls; in gdlm_do_lock() local
473 struct gdlm_ls *ls = lp->ls; in gdlm_do_unlock() local
534 struct gdlm_ls *ls = lp->ls; in gdlm_cancel() local
696 void gdlm_submit_delayed(struct gdlm_ls *ls) in gdlm_submit_delayed()
Dlock_dlm.h101 struct gdlm_ls *ls; member
/fs/xfs/
Dxfs_rtalloc.h46 #define XFS_SUMOFFS(mp,ls,bb) ((int)((ls) * (mp)->m_sb.sb_rbmblocks + (bb))) argument