Lines Matching full:ls

423 	struct dlm_ls *ls = seq->private;  in table_seq_start()  local
433 if (bucket >= ls->ls_rsbtbl_size) in table_seq_start()
450 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
452 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
460 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
465 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
478 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_start()
482 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
484 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
491 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
495 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
501 struct dlm_ls *ls = seq->private; in table_seq_next() local
516 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
524 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
529 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
543 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_next()
547 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_next()
549 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
556 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
560 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
701 struct dlm_ls *ls = file->private_data; in waiters_read() local
706 mutex_lock(&ls->ls_waiters_mutex); in waiters_read()
709 list_for_each_entry(lkb, &ls->ls_waiters, lkb_wait_reply) { in waiters_read()
717 mutex_unlock(&ls->ls_waiters_mutex); in waiters_read()
731 void dlm_delete_debug_file(struct dlm_ls *ls) in dlm_delete_debug_file() argument
733 debugfs_remove(ls->ls_debug_rsb_dentry); in dlm_delete_debug_file()
734 debugfs_remove(ls->ls_debug_waiters_dentry); in dlm_delete_debug_file()
735 debugfs_remove(ls->ls_debug_locks_dentry); in dlm_delete_debug_file()
736 debugfs_remove(ls->ls_debug_all_dentry); in dlm_delete_debug_file()
737 debugfs_remove(ls->ls_debug_toss_dentry); in dlm_delete_debug_file()
740 void dlm_create_debug_file(struct dlm_ls *ls) in dlm_create_debug_file() argument
746 ls->ls_debug_rsb_dentry = debugfs_create_file(ls->ls_name, in dlm_create_debug_file()
749 ls, in dlm_create_debug_file()
755 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_locks", ls->ls_name); in dlm_create_debug_file()
757 ls->ls_debug_locks_dentry = debugfs_create_file(name, in dlm_create_debug_file()
760 ls, in dlm_create_debug_file()
766 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_all", ls->ls_name); in dlm_create_debug_file()
768 ls->ls_debug_all_dentry = debugfs_create_file(name, in dlm_create_debug_file()
771 ls, in dlm_create_debug_file()
777 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_toss", ls->ls_name); in dlm_create_debug_file()
779 ls->ls_debug_toss_dentry = debugfs_create_file(name, in dlm_create_debug_file()
782 ls, in dlm_create_debug_file()
786 snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_waiters", ls->ls_name); in dlm_create_debug_file()
788 ls->ls_debug_waiters_dentry = debugfs_create_file(name, in dlm_create_debug_file()
791 ls, in dlm_create_debug_file()