Home
last modified time | relevance | path

Searched refs:ls_rsbtbl (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/fs/dlm/
Ddebug_fs.c509 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
511 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
519 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
524 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
541 tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; in table_seq_start()
543 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
550 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
554 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
575 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
583 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_next()
[all …]
Dlockspace.c498 ls->ls_rsbtbl = vmalloc(array_size(size, sizeof(struct dlm_rsbtable))); in new_lockspace()
499 if (!ls->ls_rsbtbl) in new_lockspace()
502 ls->ls_rsbtbl[i].keep.rb_node = NULL; in new_lockspace()
503 ls->ls_rsbtbl[i].toss.rb_node = NULL; in new_lockspace()
504 spin_lock_init(&ls->ls_rsbtbl[i].lock); in new_lockspace()
668 vfree(ls->ls_rsbtbl); in new_lockspace()
837 while ((n = rb_first(&ls->ls_rsbtbl[i].keep))) { in release_lockspace()
839 rb_erase(n, &ls->ls_rsbtbl[i].keep); in release_lockspace()
843 while ((n = rb_first(&ls->ls_rsbtbl[i].toss))) { in release_lockspace()
845 rb_erase(n, &ls->ls_rsbtbl[i].toss); in release_lockspace()
[all …]
Dlock.c346 &ls->ls_rsbtbl[bucket].lock); in put_rsb()
348 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in put_rsb()
587 spin_lock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir()
589 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in find_rsb_dir()
602 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in find_rsb_dir()
642 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in find_rsb_dir()
643 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir()
657 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir()
704 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir()
706 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir()
[all …]
Ddir.c209 spin_lock(&ls->ls_rsbtbl[bucket].lock); in find_rsb_root()
210 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, &r); in find_rsb_root()
212 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].toss, in find_rsb_root()
214 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in find_rsb_root()
Drecover.c908 spin_lock(&ls->ls_rsbtbl[i].lock); in dlm_create_root_list()
909 for (n = rb_first(&ls->ls_rsbtbl[i].keep); n; n = rb_next(n)) { in dlm_create_root_list()
915 if (!RB_EMPTY_ROOT(&ls->ls_rsbtbl[i].toss)) in dlm_create_root_list()
917 spin_unlock(&ls->ls_rsbtbl[i].lock); in dlm_create_root_list()
944 spin_lock(&ls->ls_rsbtbl[i].lock); in dlm_clear_toss()
945 for (n = rb_first(&ls->ls_rsbtbl[i].toss); n; n = next) { in dlm_clear_toss()
948 rb_erase(n, &ls->ls_rsbtbl[i].toss); in dlm_clear_toss()
952 spin_unlock(&ls->ls_rsbtbl[i].lock); in dlm_clear_toss()
Ddlm_internal.h564 struct dlm_rsbtable *ls_rsbtbl; member