Lines Matching refs:ls_rsbtbl
358 &ls->ls_rsbtbl[bucket].lock); in put_rsb()
360 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in put_rsb()
599 spin_lock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir()
601 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in find_rsb_dir()
614 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in find_rsb_dir()
654 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in find_rsb_dir()
655 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir()
669 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir()
716 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir()
718 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir()
743 spin_lock(&ls->ls_rsbtbl[b].lock); in find_rsb_nodir()
745 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in find_rsb_nodir()
758 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in find_rsb_nodir()
789 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in find_rsb_nodir()
790 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_nodir()
801 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_nodir()
814 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_nodir()
816 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_nodir()
1033 spin_lock(&ls->ls_rsbtbl[b].lock); in dlm_master_lookup()
1034 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in dlm_master_lookup()
1041 spin_unlock(&ls->ls_rsbtbl[b].lock); in dlm_master_lookup()
1054 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in dlm_master_lookup()
1067 spin_unlock(&ls->ls_rsbtbl[b].lock); in dlm_master_lookup()
1074 spin_unlock(&ls->ls_rsbtbl[b].lock); in dlm_master_lookup()
1088 error = rsb_insert(r, &ls->ls_rsbtbl[b].toss); in dlm_master_lookup()
1092 spin_unlock(&ls->ls_rsbtbl[b].lock); in dlm_master_lookup()
1100 spin_unlock(&ls->ls_rsbtbl[b].lock); in dlm_master_lookup()
1111 spin_lock(&ls->ls_rsbtbl[i].lock); in dlm_dump_rsb_hash()
1112 for (n = rb_first(&ls->ls_rsbtbl[i].keep); n; n = rb_next(n)) { in dlm_dump_rsb_hash()
1117 spin_unlock(&ls->ls_rsbtbl[i].lock); in dlm_dump_rsb_hash()
1130 spin_lock(&ls->ls_rsbtbl[b].lock); in dlm_dump_rsb_name()
1131 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in dlm_dump_rsb_name()
1135 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in dlm_dump_rsb_name()
1141 spin_unlock(&ls->ls_rsbtbl[b].lock); in dlm_dump_rsb_name()
1151 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[r->res_bucket].keep); in toss_rsb()
1152 rsb_insert(r, &ls->ls_rsbtbl[r->res_bucket].toss); in toss_rsb()
1154 ls->ls_rsbtbl[r->res_bucket].flags |= DLM_RTF_SHRINK; in toss_rsb()
1633 spin_lock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1635 if (!(ls->ls_rsbtbl[b].flags & DLM_RTF_SHRINK)) { in shrink_bucket()
1636 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1640 for (n = rb_first(&ls->ls_rsbtbl[b].toss); n; n = next) { in shrink_bucket()
1685 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in shrink_bucket()
1690 ls->ls_rsbtbl[b].flags |= DLM_RTF_SHRINK; in shrink_bucket()
1692 ls->ls_rsbtbl[b].flags &= ~DLM_RTF_SHRINK; in shrink_bucket()
1693 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1713 spin_lock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1714 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in shrink_bucket()
1716 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1722 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1731 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1740 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1747 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
1752 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in shrink_bucket()
1759 spin_unlock(&ls->ls_rsbtbl[b].lock); in shrink_bucket()
4066 spin_lock(&ls->ls_rsbtbl[b].lock); in send_repeat_remove()
4067 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in send_repeat_remove()
4069 spin_unlock(&ls->ls_rsbtbl[b].lock); in send_repeat_remove()
4074 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in send_repeat_remove()
4076 spin_unlock(&ls->ls_rsbtbl[b].lock); in send_repeat_remove()
4087 spin_unlock(&ls->ls_rsbtbl[b].lock); in send_repeat_remove()
4462 spin_lock(&ls->ls_rsbtbl[b].lock); in receive_remove()
4464 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in receive_remove()
4467 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in receive_remove()
4472 spin_unlock(&ls->ls_rsbtbl[b].lock); in receive_remove()
4480 spin_unlock(&ls->ls_rsbtbl[b].lock); in receive_remove()
4487 spin_unlock(&ls->ls_rsbtbl[b].lock); in receive_remove()
4495 spin_unlock(&ls->ls_rsbtbl[b].lock); in receive_remove()
4500 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in receive_remove()
4501 spin_unlock(&ls->ls_rsbtbl[b].lock); in receive_remove()
4507 spin_unlock(&ls->ls_rsbtbl[b].lock); in receive_remove()
5529 spin_lock(&ls->ls_rsbtbl[bucket].lock); in find_grant_rsb()
5530 for (n = rb_first(&ls->ls_rsbtbl[bucket].keep); n; n = rb_next(n)) { in find_grant_rsb()
5540 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in find_grant_rsb()
5543 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in find_grant_rsb()