Lines Matching refs:bucket

132 	uint32_t bucket;  in add_entry_to_hash()  local
134 bucket = dir_hash(ls, de->name, de->length); in add_entry_to_hash()
135 list_add_tail(&de->list, &ls->ls_dirtbl[bucket].list); in add_entry_to_hash()
139 int namelen, uint32_t bucket) in search_bucket() argument
143 list_for_each_entry(de, &ls->ls_dirtbl[bucket].list, list) { in search_bucket()
155 uint32_t bucket; in dlm_dir_remove_entry() local
157 bucket = dir_hash(ls, name, namelen); in dlm_dir_remove_entry()
159 spin_lock(&ls->ls_dirtbl[bucket].lock); in dlm_dir_remove_entry()
161 de = search_bucket(ls, name, namelen, bucket); in dlm_dir_remove_entry()
176 spin_unlock(&ls->ls_dirtbl[bucket].lock); in dlm_dir_remove_entry()
305 uint32_t bucket; in get_entry() local
307 bucket = dir_hash(ls, name, namelen); in get_entry()
309 spin_lock(&ls->ls_dirtbl[bucket].lock); in get_entry()
310 de = search_bucket(ls, name, namelen, bucket); in get_entry()
313 spin_unlock(&ls->ls_dirtbl[bucket].lock); in get_entry()
319 spin_unlock(&ls->ls_dirtbl[bucket].lock); in get_entry()
332 spin_lock(&ls->ls_dirtbl[bucket].lock); in get_entry()
333 tmp = search_bucket(ls, name, namelen, bucket); in get_entry()
338 list_add_tail(&de->list, &ls->ls_dirtbl[bucket].list); in get_entry()
341 spin_unlock(&ls->ls_dirtbl[bucket].lock); in get_entry()
354 uint32_t hash, bucket; in find_rsb_root() local
358 bucket = hash & (ls->ls_rsbtbl_size - 1); in find_rsb_root()
360 spin_lock(&ls->ls_rsbtbl[bucket].lock); in find_rsb_root()
361 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, 0, &r); in find_rsb_root()
363 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].toss, in find_rsb_root()
365 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in find_rsb_root()