Home
last modified time | relevance | path

Searched refs:ls_lkbtbl (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/fs/dlm/
Dlockspace.c478 ls->ls_lkbtbl = kmalloc(sizeof(struct dlm_lkbtable) * size, GFP_NOFS); in new_lockspace()
479 if (!ls->ls_lkbtbl) in new_lockspace()
482 INIT_LIST_HEAD(&ls->ls_lkbtbl[i].list); in new_lockspace()
483 rwlock_init(&ls->ls_lkbtbl[i].lock); in new_lockspace()
484 ls->ls_lkbtbl[i].counter = 1; in new_lockspace()
608 kfree(ls->ls_lkbtbl); in new_lockspace()
658 read_lock(&ls->ls_lkbtbl[i].lock); in lockspace_busy()
659 if (!list_empty(&ls->ls_lkbtbl[i].list)) { in lockspace_busy()
661 list_for_each_entry(lkb, &ls->ls_lkbtbl[i].list, in lockspace_busy()
664 read_unlock(&ls->ls_lkbtbl[i].lock); in lockspace_busy()
[all …]
Dlock.c602 write_lock(&ls->ls_lkbtbl[bucket].lock); in create_lkb()
607 lkid = (bucket << 16) | ls->ls_lkbtbl[bucket].counter++; in create_lkb()
609 list_for_each_entry(tmp, &ls->ls_lkbtbl[bucket].list, in create_lkb()
619 list_add(&lkb->lkb_idtbl_list, &ls->ls_lkbtbl[bucket].list); in create_lkb()
620 write_unlock(&ls->ls_lkbtbl[bucket].lock); in create_lkb()
631 list_for_each_entry(lkb, &ls->ls_lkbtbl[bucket].list, lkb_idtbl_list) { in __find_lkb()
646 read_lock(&ls->ls_lkbtbl[bucket].lock); in find_lkb()
650 read_unlock(&ls->ls_lkbtbl[bucket].lock); in find_lkb()
673 write_lock(&ls->ls_lkbtbl[bucket].lock); in __put_lkb()
676 write_unlock(&ls->ls_lkbtbl[bucket].lock); in __put_lkb()
[all …]
Ddlm_internal.h468 struct dlm_lkbtable *ls_lkbtbl; member