Home
last modified time | relevance | path

Searched refs:dlm_rsb (Results 1 – 14 of 14) sorted by relevance

/fs/dlm/
Drecover.c255 static void recover_list_add(struct dlm_rsb *r) in recover_list_add()
268 static void recover_list_del(struct dlm_rsb *r) in recover_list_del()
280 static struct dlm_rsb *recover_list_find(struct dlm_ls *ls, uint64_t id) in recover_list_find()
282 struct dlm_rsb *r = NULL; in recover_list_find()
298 struct dlm_rsb *r, *s; in recover_list_clear()
347 static void set_master_lkbs(struct dlm_rsb *r) in set_master_lkbs()
361 static void set_new_master(struct dlm_rsb *r, int nodeid) in set_new_master()
376 static int recover_master(struct dlm_rsb *r) in recover_master()
405 static int recover_master_static(struct dlm_rsb *r) in recover_master_static()
433 struct dlm_rsb *r; in dlm_recover_masters()
[all …]
Dlock.h16 void dlm_dump_rsb(struct dlm_rsb *r);
21 void dlm_put_rsb(struct dlm_rsb *r);
22 void dlm_hold_rsb(struct dlm_rsb *r);
32 unsigned int flags, struct dlm_rsb **r_ret);
35 void dlm_purge_mstcpy_locks(struct dlm_rsb *r);
57 static inline int is_master(struct dlm_rsb *r) in is_master()
62 static inline void lock_rsb(struct dlm_rsb *r) in lock_rsb()
67 static inline void unlock_rsb(struct dlm_rsb *r) in unlock_rsb()
Dlock.c78 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb);
79 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb);
80 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb);
81 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb);
82 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb);
83 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode);
84 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb);
85 static int send_remove(struct dlm_rsb *r);
86 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
87 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
[all …]
Dmemory.c31 rsb_cache = kmem_cache_create("dlm_rsb", sizeof(struct dlm_rsb), in dlm_memory_init()
32 __alignof__(struct dlm_rsb), 0, NULL); in dlm_memory_init()
62 struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls) in dlm_allocate_rsb()
64 struct dlm_rsb *r; in dlm_allocate_rsb()
70 void dlm_free_rsb(struct dlm_rsb *r) in dlm_free_rsb()
Ddebug_fs.c52 struct dlm_rsb *res) in print_format1_lock()
74 static int print_format1(struct dlm_rsb *res, struct seq_file *s) in print_format1()
174 struct dlm_rsb *r) in print_format2_lock()
209 static int print_format2(struct dlm_rsb *r, struct seq_file *s) in print_format2()
269 static int print_format3(struct dlm_rsb *r, struct seq_file *s) in print_format3()
348 struct dlm_rsb *rsb;
399 struct dlm_rsb *r; in table_seq_start()
425 r = rb_entry(node, struct dlm_rsb, res_hashnode); in table_seq_start()
456 r = rb_entry(node, struct dlm_rsb, res_hashnode); in table_seq_start()
473 struct dlm_rsb *r, *rp; in table_seq_next()
[all …]
Ddlm_internal.h54 struct dlm_rsb;
228 struct dlm_rsb *lkb_resource; /* the rsb */
277 struct dlm_rsb { struct
323 static inline void rsb_set_flag(struct dlm_rsb *r, enum rsb_flags flag) in rsb_set_flag() argument
328 static inline void rsb_clear_flag(struct dlm_rsb *r, enum rsb_flags flag) in rsb_clear_flag()
333 static inline int rsb_flag(struct dlm_rsb *r, enum rsb_flags flag) in rsb_flag()
530 struct dlm_rsb ls_stub_rsb; /* for returning errors */
Dmemory.h19 struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls);
20 void dlm_free_rsb(struct dlm_rsb *r);
Drcom.h19 int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid);
20 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
Ddir.c115 int dlm_dir_nodeid(struct dlm_rsb *r) in dlm_dir_nodeid()
351 static struct dlm_rsb *find_rsb_root(struct dlm_ls *ls, char *name, int len) in find_rsb_root()
353 struct dlm_rsb *r; in find_rsb_root()
391 struct dlm_rsb *r; in dlm_copy_master_names()
411 r = list_entry(list, struct dlm_rsb, res_root_list); in dlm_copy_master_names()
Dlockspace.c520 memset(&ls->ls_stub_rsb, 0, sizeof(struct dlm_rsb)); in new_lockspace()
719 struct dlm_rsb *rsb; in release_lockspace()
782 rsb = rb_entry(n, struct dlm_rsb, res_hashnode); in release_lockspace()
788 rsb = rb_entry(n, struct dlm_rsb, res_hashnode); in release_lockspace()
797 rsb = list_first_entry(&ls->ls_new_rsb, struct dlm_rsb, in release_lockspace()
Ddir.h18 int dlm_dir_nodeid(struct dlm_rsb *rsb);
Drecover.h27 void dlm_recovered_lock(struct dlm_rsb *r);
Drcom.c328 int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid) in dlm_send_rcom_lookup()
373 static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, in pack_rcom_lock()
403 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in dlm_send_rcom_lock()
Dnetlink.c94 struct dlm_rsb *r = lkb->lkb_resource; in fill_data()