Lines Matching refs:ls

425 	struct dlm_ls *ls = seq->private;  in table_seq_start()  local
435 if (bucket >= ls->ls_rsbtbl_size) in table_seq_start()
452 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
454 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
462 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
467 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
480 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_start()
484 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
486 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
493 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
497 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
503 struct dlm_ls *ls = seq->private; in table_seq_next() local
518 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
526 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
531 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
545 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_next()
550 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_next()
552 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
559 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
563 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
644 struct dlm_ls *ls = seq->private; in table_write2() local
659 error = dlm_debug_add_lkb(ls, lkb_id, name, len, lkb_flags, in table_write2()
734 struct dlm_ls *ls = file->private_data; in waiters_read() local
739 mutex_lock(&ls->ls_waiters_mutex); in waiters_read()
742 list_for_each_entry(lkb, &ls->ls_waiters, lkb_wait_reply) { in waiters_read()
750 mutex_unlock(&ls->ls_waiters_mutex); in waiters_read()
760 struct dlm_ls *ls = file->private_data; in waiters_write() local
774 error = dlm_debug_add_lkb_to_waiters(ls, lkb_id, mstype, to_nodeid); in waiters_write()
789 void dlm_delete_debug_file(struct dlm_ls *ls) in dlm_delete_debug_file() argument
791 debugfs_remove(ls->ls_debug_rsb_dentry); in dlm_delete_debug_file()
792 debugfs_remove(ls->ls_debug_waiters_dentry); in dlm_delete_debug_file()
793 debugfs_remove(ls->ls_debug_locks_dentry); in dlm_delete_debug_file()
794 debugfs_remove(ls->ls_debug_all_dentry); in dlm_delete_debug_file()
795 debugfs_remove(ls->ls_debug_toss_dentry); in dlm_delete_debug_file()
886 void dlm_create_debug_file(struct dlm_ls *ls) in dlm_create_debug_file() argument
892 ls->ls_debug_rsb_dentry = debugfs_create_file(ls->ls_name, in dlm_create_debug_file()
895 ls, in dlm_create_debug_file()
901 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_locks", ls->ls_name); in dlm_create_debug_file()
903 ls->ls_debug_locks_dentry = debugfs_create_file(name, in dlm_create_debug_file()
906 ls, in dlm_create_debug_file()
912 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_all", ls->ls_name); in dlm_create_debug_file()
914 ls->ls_debug_all_dentry = debugfs_create_file(name, in dlm_create_debug_file()
917 ls, in dlm_create_debug_file()
923 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_toss", ls->ls_name); in dlm_create_debug_file()
925 ls->ls_debug_toss_dentry = debugfs_create_file(name, in dlm_create_debug_file()
928 ls, in dlm_create_debug_file()
932 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_waiters", ls->ls_name); in dlm_create_debug_file()
934 ls->ls_debug_waiters_dentry = debugfs_create_file(name, in dlm_create_debug_file()
937 ls, in dlm_create_debug_file()